How to Backtest a Trading Strategy: The Complete Guide
Backtesting lets you evaluate a strategy before risking real capital. But most traders backtest incorrectly — optimising for past data instead of testing genuine edge. This guide covers the full process from data selection to forward testing.
Why backtest at all?
A backtest answers the question: “Did this strategy have positive expectancy over a large historical sample?” It forces you to make your rules explicit, provides statistical context for what realistic performance looks like, and helps you avoid abandoning a good strategy during a normal drawdown.
The key word is “correct.” A backtest that is over-fitted to historical data gives false confidence and is more dangerous than no backtest at all.
The 6-step backtesting process
Common backtesting mistakes
Frequently asked questions
What is backtesting in trading?
Backtesting is the process of applying a trading strategy to historical price data to evaluate how it would have performed. It provides an objective measure of a strategy's win rate, R:R, profit factor, and maximum drawdown before risking real capital.
What is curve fitting in backtesting?
Curve fitting (or overfitting) is when a trading strategy is optimised so precisely for historical data that it has no predictive value for future performance. A curve-fitted strategy typically shows exceptional backtest results but fails in live trading. It is identified by excessive parameters, very limited trade sample sizes, or results that are too consistent to be realistic.
How many trades do I need for a valid backtest?
A reliable backtest requires at least 100 trades, preferably 200+, across multiple market conditions (trending and ranging, bull and bear). Fewer than 50 trades is statistically unreliable — variance will dominate the results.
What is the difference between backtesting and forward testing?
Backtesting tests a strategy against historical data. Forward testing (paper trading) applies the same strategy in real-time to future data — but without real money at risk. Forward testing validates that the backtest results were not the product of curve fitting.
Backtest strategies inside Tradapt
Tradapt's backtest tool lets you test strategies on real historical candle data with built-in SMA crossover strategies — or define your own rules.
Start for free