Applying a trading rule to past prices to see how it would have done.
A backtest applies fixed buy and sell rules to historical data and records every trade. The figure compares a simple average-crossover strategy (blue, after a 0.1% fee per trade) with just holding the asset (grey).
Tuning the parameters until the past looks perfect (overfitting). The rule then fits the noise of that period and fails on new data. Test on a period you did not tune on.
Run any template, then change the date range and see how much the result moves.
Open the appEducational content. Not investment advice. Past or simulated results do not predict future results.