Learn · Backtest overfitting

Why do backtests fail live? Backtest overfitting explained

Reviewed against the platform's code on Sep 23, 2026

Backtest overfitting happens when a strategy's rules or parameters are tuned — deliberately or through repeated trial — to the noise of a particular history, so the backtest looks strong but the edge does not exist out of sample and live performance decays.

Why it matters

It is the most common reason backtested strategies fail in live trading. The more variations tried, the more likely the best one is a statistical accident — and the more convincing its backtest looks.

How it works

It is detected by testing out of sample (walk-forward, purged cross-validation), by correcting performance statistics for the number of trials (the deflated Sharpe ratio), by estimating the probability of backtest overfitting, and by checking that results survive small changes to parameters.

Questions

Why do trading strategies stop working?
Often because they never worked: the backtest fitted noise. Others decay as markets change or as the edge is traded away.
How can I tell if a backtest is overfitted?
Test it out of sample, count how many variations were tried, deflate its Sharpe ratio for that count, and see whether it survives small parameter changes.
Is a longer backtest safer?
It helps, but not if many strategies were tried on it. The number of trials matters as much as the length of history.

References

  • Bailey, D., Borwein, J., López de Prado, M. & Zhu, Q. (2017). The Probability of Backtest Overfitting. Journal of Computational Finance.
  • Harvey, C., Liu, Y. & Zhu, H. (2016). …and the Cross-Section of Expected Returns. Review of Financial Studies.

Educational content about research methods. Not investment advice.