Market sessions
Sydney
Tokyo
London
New York
Market status
Essential

Backtesting

Backtesting runs a strategy against historical data to measure its edge before risking live money - garbage in, garbage out.

Quick answer

Backtesting runs a strategy on historical data to measure its edge before risking money. Its quality depends on realistic costs and honest fills, and overfitting to the past is the classic failure.

Definition

Backtesting is the process of testing a trading strategy against historical data to measure its performance: win rate, expectancy, drawdown and behaviour across market regimes. A backtest is only as good as its assumptions: realistic spreads and slippage, honest execution fills, and data that covers different market conditions. Overfitting is the classic failure, where a strategy is tuned so precisely to the past that it fails live. A good backtest is the cheapest education a trader can buy; a bad one is the most expensive.

How It Works

  • Apply entry and exit rules to historical price data
  • Measure win rate, expectancy, drawdown and regime behaviour
  • Forward testing and small live size validate the backtest

Trading Tips

1

Include spread, commission and realistic slippage or the result is fiction

2

Test across trending and ranging periods, not just the good ones

3

If a strategy looks too good, it is overfitted

Back to Glossary
Start Trading

Put Your Knowledge Into Practice

Compare regulated brokers and find the best one for your trading style.

Recommended alternative

We review this broker - here's who we recommend instead

We can only take you directly to brokers we're partnered with. This is the closest vetted alternative we've reviewed and can stand behind.

Compare every broker we rate