BREAKINGUkraine war: Prince Harry visits Lviv to support injured veterans
← Forex glossary

Backtesting

technicalintermediate

Testing a strategy on historical data to estimate how it would have performed.

Backtesting means testing a trading strategy on past price data to see how it would have performed. It can be done by hand, scrolling through old charts, or with software that runs the rules automatically.

A good backtest gives you the number of trades, win rate, average win and loss, expectancy and maximum drawdown. That shows whether a strategy is worth trading at all and what losing streaks to expect.

Common mistakes

  • Curve fitting: tweaking settings until they fit past data perfectly, which often fails on new data.
  • Ignoring costs: leaving out spreads, commission, swap and slippage.
  • Too few trades: a handful of results tells you very little.
  • Look-ahead bias: using information that would not have been known at the time.

After backtesting, forward-test the strategy on a demo or very small live account. Past results never guarantee future performance, but a strategy that fails a fair backtest is unlikely to work live.