Backtesting

Limitations of Backtesting and How to Use It Wisely

What a backtest fundamentally cannot tell you - future regimes, execution, liquidity, your own behaviour - and how to use it as a filter and a risk model rather than a forecast.

By AlgoXP4 min readUpdated

Backtest projection compared with weaker live results after the strategy goes live

A backtest is a controlled experiment on the past. It is extremely useful - and fundamentally limited. Problems start when it is treated as a forecast. Used wisely, it is a filter that rejects weak ideas and a model that tells you how much pain a strategy can cause. This article explains where the limits are and how to work within them.

Limit 1: the future is a different sample

A backtest shows one path that markets actually took. The future is another path from a process that also changes over time:

  • Regimes shift. Volatility, trend persistence and correlations change with monetary policy, liquidity and market participants.
  • Edges decay. When a pattern becomes widely known and traded, its profitability often shrinks.
  • Rare events are underrepresented. A five-year test may contain no flash crash, no central bank surprise, no weekend gap of size.

How to work with it. Test across as many different regimes as you can, split results by period, and prefer strategies whose logic has a reason to keep working - for example, they follow trends or fade extremes for an understood reason - over patterns found by search alone.

Limit 2: execution is approximated

The engine fills orders according to simple rules. Reality adds:

  • Slippage on market and stop orders, especially at news and session opens.
  • Variable spreads that widen exactly when many strategies want to trade.
  • Partial fills and liquidity limits for larger size.
  • Latency between signal and order on the server.

How to work with it. Add costs and slippage deliberately above the averages, check trades at the most volatile moments, and run a forward test to measure real fills against simulated ones.

Limit 3: selection bias from your own research

Every time you test a new variant, you increase the chance that the best result is luck. If you try 100 random strategies, some will look excellent on any historical period. The backtest of the winner does not include the 99 failures, but its reliability depends on them.

How to work with it. Record the number of variants, keep an untouched out-of-sample period, and use walk-forward analysis so that parameter choices are always tested on data that did not influence them.

Limit 4: the sample is smaller than it looks

Ten years of data can contain only 80 trades for a slow strategy. Statistics on 80 trades have wide uncertainty: a true win rate of 45% can easily show up as 38% or 52% in a sample that size.

How to work with it. Count trades, not years. Use Monte Carlo simulation to see the range of outcomes the same edge can produce. Treat point estimates as the centre of a range.

Limit 5: it does not include you

The simulated trader follows every signal, never skips a trade after five losses, never doubles size after a win, and never switches the bot off during a drawdown. Many strategies fail in practice not because the edge vanished but because the person stopped following them at the worst moment.

How to work with it. Look at the longest drawdown and losing streak in the test and ask honestly whether you would have kept running the strategy. If not, reduce size or choose a smoother strategy.

Limit 6: the account is part of the system

A backtest at fixed size ignores things that matter live:

  • margin requirements and leverage changes by the broker;
  • swaps that change over time;
  • prop-firm rules such as daily loss limits that can end an account during a normal drawdown;
  • running several strategies at once with correlated losses.

How to work with it. Simulate your account rules explicitly. If a daily loss limit applies, check how often the backtest would have breached it.

Using backtests wisely

Turn these limits into a process:

  1. Use backtests to say no. A strategy that fails a fair backtest rarely succeeds live. A strategy that passes has only earned the right to further tests.
  2. Use them as a risk model. The distribution of drawdowns and streaks is more useful than the final profit number.
  3. Separate development from validation. Develop on one part of the data, decide once on another.
  4. Stress, do not polish. Raise costs, delay entries, remove the best trades, test nearby parameters. Robust strategies degrade gracefully.
  5. Confirm forward. Demo or small-size live trading for a predefined period is the final check of everything the backtest cannot see.

Key takeaways

  • A backtest describes one past path; the future is a different and changing sample.
  • Execution, selection bias, small samples and human behaviour are the main blind spots.
  • Use backtests to reject ideas and to model risk, not to predict returns.
  • Every strategy that passes still needs out-of-sample and forward confirmation.

FAQ

If backtests are so limited, why do them at all?

Because they are the cheapest way to reject bad ideas and to understand how a strategy behaves. Their limits mean you should not treat a good result as proof, but a bad result is usually a reliable reason to stop.

How much worse should I expect live results to be?

There is no fixed number, but plan for lower returns and deeper drawdowns than the backtest. A common practice is to assume the live edge is noticeably smaller and to size positions so that a drawdown about twice the backtest's is survivable.

Can more data remove these limitations?

More data helps with sample size and regime coverage, but it cannot show conditions that have never happened, and very old data may describe a market that no longer exists.

Sources and further reading

  1. Bailey, Borwein, López de Prado, Zhu: The Probability of Backtest Overfitting - papers.ssrn.com
  2. William F. Sharpe: The Sharpe Ratio (1994) - web.stanford.edu