Skip to content
Back to Blog
  • Algorithmic Trading
  • Overfitting

7 Signs Your Trading Strategy Is Overfit (and How to Test for Each)

The seven warning signs that a backtest learned its sample instead of the market, and the test that exposes each one.

Agon Research Team4 min read

A trading strategy is overfit when it has learned the quirks of its historical sample instead of a repeatable market relationship. The clearest sign is a result that collapses on data it has never seen. The other six below can be tested before you risk money.

Key takeaways

  • An overfit strategy learned its sample, not the market; the clearest sign is a collapse on unseen data.
  • Seven signs each have a test: locked holdout, parameter perturbation, search count, trade concentration, other assets, realistic costs and a pre-registered hypothesis.
  • Let a failed test retire the idea instead of redesigning around it.

Overfitting rarely looks like a mistake. It looks like careful work: more data, more parameters, a clean equity curve and a sensible story after the fact. Each sign below says what it looks like and how to test for it.

1. Performance collapses out of sample

What it looks like: a strong backtest, then losses on later data. One configuration in our search showed +63.2% in the development search; tested once on locked data, it lost 42% to 49%. How to test: keep a final period the search never touches, and evaluate on it once, at the end. Past, hypothetical research results.

2. The result depends on exact parameter values

What it looks like: a 14-period setting is excellent while 13 and 15 are poor. How to test: perturb each parameter slightly and rerun. A real relationship degrades gradually; an overfit one falls off a cliff.

3. Many configurations were tried, and only the winner is reported

What it looks like: the best of hundreds or thousands of variants. With enough attempts, some will look excellent by chance. How to test: record how many configurations were searched, and discount the winner for it, for example with the Deflated Sharpe Ratio.

4. A handful of trades drive the result

What it looks like: remove the best three trades and the strategy no longer works. How to test: count the trades and look at how much of the profit the largest winners explain.

5. It works on one asset or one period only

What it looks like: a rule that thrives on one coin in one bull run. How to test: run the unchanged rule on other liquid assets and other years, including the conditions it was supposed to survive.

6. It barely clears costs, or ignores them

What it looks like: a positive gross edge that disappears once fees, funding and slippage are included. How to test: apply realistic costs per trade, and add a margin, because live execution is usually worse than the model.

7. The explanation came after the result

What it looks like: a story written to fit the curve, or a regime switch that was never itself tested out of sample. How to test: write the hypothesis and the success criteria before the test, and test any switching rule on unseen data, as its own strategy.

Seven signs of overfitting and the test for each
SignTest
Collapses out of sampleLocked final holdout, evaluated once
Fragile parametersPerturb each parameter and rerun
Best of many variantsCount the search; deflate the Sharpe
Few trades drive itRemove the top winners; count trades
One asset or periodUnchanged rule on other assets and years
Barely clears costsRealistic fees, funding, slippage, plus a margin
Story after the factPre-registered hypothesis; test the switch itself

How do you respond when a strategy shows these signs?

Pre-commit the evaluation, test across time and assets, lock the final holdout, and compare against a simple benchmark such as buy-and-hold on the same pair and period. Prefer strategies whose logic survives a modest change to its inputs. Most importantly, let a failed test retire the idea. In Agon, every strategy goes through backtest, Monte Carlo, walk-forward and paper trading, and must pass walk-forward validation before real-money mode is unlocked.

Frequently asked questions

Is a strategy with many parameters always overfit?

No. The warning sign is not the number of parameters but how much the result depends on their exact values and on the specific sample. A model with many parameters that survives small changes to them and a locked holdout is not, on that evidence, overfit.

Can walk-forward testing prevent overfitting?

It reduces it, but repeatedly redesigning a strategy after looking at walk-forward results reintroduces it. Keep a final holdout and decide the success criteria in advance.

How much historical data is enough?

There is no fixed amount. The data should include the conditions the strategy must survive, such as a bear market and a range, and contain enough trades for the result not to depend on a few of them.

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.