All topics
Lines of code on a computer screen
Reading the tape

Backtesting, overfitting, and why your strategy worked yesterday

Test enough rules on old prices and one will look brilliant by chance. The work is telling that luck apart from something that lasts.


A backtest asks a simple question: if I had followed this rule in the past, what would have happened? Take a set of historical prices, apply a rule such as “buy when the 50-day average crosses above the 200-day, sell when it crosses back”, and add up the results. Every systematic fund backtests, and so do many individual traders with charting software that makes it take seconds. Done carefully, a backtest is the only honest way to check an idea before risking money on it. Done carelessly, it is a machine for producing convincing results that will not repeat.

This topic is part of the full library

This one is part of the full library. A free account opens 2 paid reads a month; the plans open the whole shelf and every course chapter.

In this read

  1. The arithmetic of trying many things
  2. Other ways a backtest lies
  3. What the research found
  4. Habits that help
  5. Why the problem never fully goes away
  6. The cost of a small edge
  7. What this piece does not cover
Learn it properly, with a free account

Interested in backtesting? Backtesting a strategy honestly, step by step.

Active Trading · Trading StrategiesBacktesting a Strategy HonestlyFull plan

Interested in moving averages? Simple against exponential, and how traders use the crossovers.

Active Trading · Technical IndicatorsMoving Averages: SMA vs EMAFull plan

Interested in drawdowns? Expectancy, drawdown and why good systems still have bad months.

Active Trading · Risk Management for TradersExpectancy, Drawdown & DisciplineFull plan