TradehouseBuyer guides & toolsPricingPart of TradeHouse

TradeHouse Fidelity Lab · Guides

Backtest overfitting: a practical guide

A backtest is overfit when its result depends on the particular history it was tuned on rather than on something that will repeat. The danger is not that overfit backtests look bad. It is that they look good, often better than honest ones, because the search process selected them for looking good.

Where overfitting comes from

How to measure it

MethodQuestion it answersGuide
Walk-forward with a frozen ruleDoes the rule chosen on past data still work on data it never saw?Walk-forward schedule
Deflated Sharpe ratioIs the best Sharpe still significant once you account for how many trials produced it?Calculator
Probability of backtest overfitting (PBO)How often does the in-sample winner rank below median out of sample?PBO explained
Multiplicity controlAfter testing many rules, which survivors are not just false discoveries?Data snooping
Robustness and Monte Carlo testsDoes the result survive small changes in parameters, costs and trade order?Robustness tests

A checklist before you trade a backtest

  1. Write down how many variants you tried, including the ones you discarded.
  2. Confirm every feature and every fill price was knowable at decision time (look-ahead bias).
  3. Confirm the universe includes things that died, delisted or were voided (survivorship bias).
  4. Re-net costs from the venue's real fee schedule, not a flat guess.
  5. Count independent days, not rows.
  6. Score a frozen rule on a held-out period you have not looked at (out-of-sample testing).
  7. Adjust the headline Sharpe for the number of trials.

What a clean result means

Passing these checks does not prove an edge. It removes the most common ways a backtest lies. The honest next step after a pass is a small live or paper allocation with the rule frozen, not full size.

Try it on your own trades. The free Fidelity Lab tier runs one report a month on up to 5,000 legs: all 11 contamination detectors, cost re-netting and the walk-forward verdict. Run a free report or see pricing.

Frequently asked questions

What is the difference between overfitting and curve fitting?

In trading the two terms are used for the same thing: tuning a rule to the noise of one sample.

Can I avoid overfitting by using fewer parameters?

It helps, but it does not remove the trials you ran before choosing the final rule. Those trials still count.

Related guides

All buyer guides and tools

Educational content, not investment advice. Updated 2026-10-28.