Process·4 min read

Overfitting: Why a Perfect Backtest Is a Red Flag

By ·

Give a computer enough settings to tweak and it will find a combination that made money in the past. That doesn't mean it found anything real. Often it has just memorised the noise in that particular stretch of history. That's overfitting.

Warning signs

An equity curve that climbs almost in a straight line. Results that fall apart when a setting is nudged slightly. A strategy that only works on one market, or one specific date range. Lots of rules added to dodge individual losing trades.

Each of these suggests the strategy is fitted to the past rather than capturing something that might persist.

How we check for it

We keep rules simple, with as few adjustable settings as possible. We test neighbouring settings, not just the best one: if performance only exists on a knife-edge, it gets dropped. We hold back data the strategy never saw during development and test on that. We raise trading costs to see whether the edge survives. And we look at how it behaves on other markets.

None of this guarantees a strategy will work live. It filters out the ones that were very unlikely to.

Want to see how a strategy gets tested?

Message us on Telegram and we'll walk you through the process.

Get in touch

Capital at risk. Past performance is not a guide to future results. This is not investment advice.