My progressOpen Stolo

Backtest traps

Overfitting, look-ahead and survivorship.

Why it matters

Most disappointing live results come from traps in the backtest, not from the market changing.

The intuition

Common traps: overfitting (too many parameters tuned to history), look-ahead bias (using information not available at the time), survivorship bias (testing only what survived), ignoring costs and liquidity, and too few trades to conclude anything. Rules changing over time, such as lot sizes and expiry days, also break naive tests.

Defences: fewer parameters, out-of-sample tests, realistic costs, and being suspicious of results that look too good.

Check yourself

Tuning parameters until a backtest looks perfect is called…

Common mistakes

  • Trusting a smooth equity curve from a heavily tuned rule.
  • Ignoring that history had different rules.

Recap

  • Beware overfitting, look-ahead and survivorship.
  • Include costs and liquidity.
  • Be suspicious of perfect results.
Finished reading?Mark it complete to keep your place and your streak.