Skip to content
Back to Blog
  • Backtesting
  • Overfitting

The Biggest Backtesting Mistake: Looking at Your Holdout Twice

Why a test period becomes unreliable the moment it influences strategy selection.

Agon Research Team2 min read

A holdout dataset is supposed to answer one question: does an idea work on data it never saw? The moment it influences your choices, it stops being a holdout.

It is easy to split historical data into training and test periods, run a backtest, then adjust the model after seeing the test result. It is also easy to leak more subtly: run many searches, keep the strategies whose holdout performance looks best, and call the survivors validated. In both cases, the holdout has become part of the optimization target.

What happened in our search

Our early process reserved roughly 17 months from the ranking step. Yet we ran several rounds and retained what survived. That selection quietly used the holdout. When we later sealed a final 20% of data and opened it only once, none of 400 candidates passed. The attractive DOGE search result became a loss of 42% to 49% on the locked period.

A practical protocol

  • Use a development set for research and parameter choices.
  • Use walk-forward folds inside that development set to expose instability.
  • Keep a final locked period untouched by model selection.
  • Define success criteria before opening it: costs, drawdown, statistical threshold, and benchmark.
  • If it fails, treat the result as evidence—not as a prompt to tune against that final period.

This does not make a backtest perfect. Regimes change, execution differs from simulation, and datasets can contain errors. But it prevents one of the most common ways a strategy becomes impressive on paper and fragile in practice.

Research, not investment advice.

Stay Updated

Subscribe to our newsletter to receive the latest trading insights, platform updates, and market analysis directly in your inbox.