How-to guide · Backtesting & Walk-Forward Testing

How to Spot Overfitting in a Strategy

A curve that memorised the past looks perfect in-sample and falls apart out-of-sample — here is how to catch it before it costs you.

Published June 7, 2026 · Primary topic: spot overfitting

← Back to the Backtesting & Walk-Forward Testing hub

An overfit strategy is one that memorised the past instead of learning anything general about it. It looks flawless on the data it was tuned against and falls apart the moment it meets data it has never seen. Spotting it before live trading is one of the most valuable skills in backtesting, because an overfit curve is the most convincing way to lose money slowly.

The tell: a perfect past, a fragile future

Overfitting thrives when a strategy has many knobs and a limited history to tune them against. With enough parameters, you can fit almost any curve to almost any past — but you have fit the noise, not the signal. The result is a backtest that is beautiful in-sample and disappointing out-of-sample.

Step by step

  1. Count the parameters. List every value the strategy tunes. The more knobs you turn against the same fixed history, the easier it is to memorise noise rather than structure.
  2. Check in-sample versus out-of-sample. Compare results on the tuned data against results on unseen data. A large drop between the two is the classic signature of overfitting.
  3. Perturb the inputs. Nudge each parameter slightly. A robust strategy degrades gently; a fragile one collapses, which means it was balanced on a knife edge that the market will not hold.
  4. Demand walk-forward proof. Trust only a strategy that holds up across rolling out-of-sample folds, not one that produced a single good run.

Why the cost model matters here too

Overfitting often hides behind ignored costs. A strategy that takes hundreds of tiny trades can look profitable until fees, spread, and slippage are charged on every one. Applying the realistic cost model inside the test removes a whole class of strategies that only ever "worked" because friction was assumed away.

Overfitting and its quieter sibling, look-ahead bias, are best caught the same way: with walk-forward testing. When a strategy finally survives both, the next step is never live — it is moving from backtest to paper trading.

Important

This is not investment advice.

GreatDane Trades is an education, backtesting, and trading automation platform. Nothing on this site is financial advice. Results are simulated. Backtests do not guarantee future results. Markets can diverge from simulations. Trading cryptocurrencies involves substantial risk including the total loss of capital. Paper trading should come before live trading. Users are responsible for their own trades.

Read the full risk disclaimer →

More in Backtesting & Walk-Forward Testing

Closely related guides in this topic cluster.

See every guide in this cluster on the hub: Backtesting & Walk-Forward Testing.

Explore the other pillars

Put the discipline into practice — in paper first.

Start in paper mode, validate with walk-forward backtests, and let the risk engine hold the line. No real capital is at risk until you decide to connect Kraken.

No profit promises. Paper trading by default.