Why backtest?
A backtest shows how a strategy with clear rules would have behaved in the past. It is no guarantee, but it stops you from testing an idea with real money without any basis. Evaluate at least 100 trades to get a first reliable picture.
Manual or automated
In a manual backtest you scroll back on the chart and move forward candle by candle, recording every decision in a spreadsheet. This also trains your eye. Automated backtests with the strategy tester in MetaTrader 5 or cTrader are faster but require rules that can be programmed unambiguously.
The key metrics
- Win rate: share of winning trades.
- Average win and loss (in R, i.e. multiples of your risk).
- Expectancy: win rate × avg. win − loss rate × avg. loss. Must be positive.
- Profit factor: sum of profits ÷ sum of losses, good from about 1.3.
- Maximum drawdown: largest decline from a peak of the equity curve.
Example: 45% win rate, avg. win 2 R, avg. loss 1 R → expectancy = 0.45 × 2 − 0.55 × 1 = +0.35 R per trade.
Mistakes that make backtests worthless
Overfitting: the rules are tweaked until they fit the past perfectly – and then fail in the future. Other mistakes are forgotten costs (spread, commission, slippage), test periods that are too short and leaving out ‘inconvenient’ trades afterwards. So test across different market phases and then check the strategy on a demo account for a few weeks (forward test).
✅ Key takeaways
- Test at least 100 trades before going live.
- Expectancy must be positive after costs.
- Maximum drawdown shows what you have to endure.
- Avoid overfitting and confirm with a forward test.
This lesson is for educational purposes only and is not investment advice. Always practise new techniques on a demo account first.