Backtesting, done honestly

Backtesting is how you estimate whether a strategy has an edge — and it is the easiest thing in trading to get wrong. These pages explain the workflow and, just as importantly, the biases and statistical traps (survivorship, look-ahead, data snooping, overfitting) that make a backtest lie, plus the techniques — walk-forward, Monte Carlo, out-of-sample and forward testing — that make it more trustworthy.

Backtesting: Backtesting is simulating a trading strategy on historical data to estimate how it would have performed. Done honestly it needs clean, survivorship-free data, no look-ahead bias, out-of-sample and walk-forward validation, and awareness that curve-fitting and data-snooping produce backtests that look brilliant and fail live. A good backtest reduces uncertainty; it never proves future profit.

What is Backtesting?

Core concept

Backtesting is the process of simulating a fully-specified trading strategy on historical market data to estimate how it would have performed, so you…

The Backtesting Workflow

Process

The backtesting workflow is the disciplined, repeatable pipeline that turns a trading hypothesis into a validated strategy: form a hypothesis, prepar…

Historical Data

Data

Historical data is the record of past prices, volumes and related information used to backtest strategies, and its granularity, cleanliness, adjustme…

Survivorship Bias

Bias

Survivorship bias is the distortion that arises when a backtest uses only instruments that survived to the present, silently excluding delisted, merg…

Look-Ahead Bias

Bias

Look-ahead bias is the error of allowing a backtest to use information that would not actually have been available at the moment a decision was made,…

Data Snooping

Statistics

Data snooping is the statistical error of testing many strategies, parameters or variations on the same data and then selecting the best, which almos…

Curve Fitting

Overfit

Curve fitting is tuning a strategy's parameters so tightly to the specific ups and downs of the tested history that the backtest looks excellent but …

Overfitting

Overfit

Overfitting is when a model or strategy is complex enough to memorise the noise in the data it was built on rather than learn the underlying structur…

Walk-Forward Testing

Validation

Walk-forward testing repeatedly optimises a strategy on an in-sample window and then tests the chosen parameters on the immediately following out-of-…

Monte Carlo Simulation

Robustness

Monte Carlo simulation resamples or randomises a strategy's historical trades or returns many times to generate a distribution of possible outcomes, …

Out-of-Sample Testing

Validation

Out-of-sample testing evaluates a strategy on data that was never used to design, tune or select it, giving the most honest available estimate of how…

Forward Testing

Validation

Forward testing runs a finalised strategy forward on genuinely new data as it arrives in real time, either on paper or with small live capital, provi…

Paper Trading

Simulation

Paper trading is the practice of running a strategy on live market data in real time with simulated, no-money execution, letting you test the logic, …

Frequently asked questions

What is backtesting in trading?
Backtesting is running a trading strategy against historical market data to simulate the trades it would have made and estimate its past performance — returns, drawdown, win rate and risk metrics. It is a hypothesis test, not a guarantee: it tells you how a rule set behaved in the past under your assumptions, subject to data quality and modelling bias.
Why do backtested strategies fail in live trading?
Common reasons are overfitting (the strategy was tuned to historical noise), look-ahead bias (it used information not available at the time), survivorship bias in the data, ignoring transaction costs and slippage, and regime change. Out-of-sample testing, walk-forward analysis and forward/paper trading are used to catch these before risking capital.
What is the difference between backtesting and forward testing?
Backtesting runs a strategy on past data all at once; forward testing (paper or live with small size) runs it on new, unseen data as it arrives, in real time. Forward testing is slower but far more honest because the strategy cannot have been fitted to data it has never seen, exposing overfitting and execution issues a backtest hides.
Educational content only — not investment advice. See our Risk Disclosure.