Backtesting a Strategy — Developing a Trading Process
Backtesting means applying a strategy's exact rules to historical price data to see what results it would have produced. The goal is to gather evidence…
What backtesting actually tests
Backtesting means applying a strategy's exact rules to historical price data to see what results it would have produced. The goal is to gather evidence about whether a strategy's logic has held up across many past market conditions before risking real money on it.
A useful backtest requires rules specific enough to apply mechanically — if human judgment is needed to decide whether a historical setup 'counts,' the test loses much of its objectivity.
[Read the lesson: Backtesting a Strategy](/learn-to-trade/developing-a-trading-process/backtesting-a-strategy)
Overfitting: the hidden trap
Overfitting happens when a strategy is tweaked repeatedly until it matches the quirks of one specific historical dataset extremely well — essentially memorizing the past rather than capturing a real, repeatable pattern.
An overfit strategy often looks spectacular in its backtest and then performs poorly in live or new data, because the 'edge' it found was really just noise from that particular historical sample.
[Read the lesson: Backtesting a Strategy](/learn-to-trade/developing-a-trading-process/backtesting-a-strategy)
Look-ahead bias and other errors
Look-ahead bias occurs when a backtest accidentally uses information that would not have been available at the time of the trade — for example, using a daily candle's closing price to trigger a trade earlier in that same day.
Other common errors include ignoring spreads and commissions, assuming perfect fills at exact prices, and testing on too small a sample of trades to draw any reliable conclusion.
[Read the lesson: Backtesting a Strategy](/learn-to-trade/developing-a-trading-process/backtesting-a-strategy)
What a good backtest can and cannot tell you
A well-constructed backtest, run over a large and varied sample with realistic costs, can tell you whether a strategy's rules have historically produced a reasonable statistical edge.
What it cannot do is guarantee future results. Markets evolve, and past relationships between price patterns and outcomes can weaken or disappear. A backtest is evidence to justify moving to the next stage — forward testing — not a certificate of future profit.
**A backtest's real conclusion:** A strategy backtested over 500 trades across five years and three different currency pairs with realistic spreads shows a positive expectancy. The correct conclusion is 'this strategy has historically had an edge and is worth forward testing,' not 'this strategy is guaranteed to keep making money.'
[Read the lesson: Backtesting a Strategy](/learn-to-trade/developing-a-trading-process/backtesting-a-strategy)