Page 1 of 1

Overfitting by numbers: how many trades does each parameter need?

Posted: Sun Nov 22, 2026 9:16 am
by Shadow Trader
Every rule and every parameter you add to a strategy gives it another chance to fit the history rather than the market. A system with two settings tested on 2,000 trades is on much firmer ground than a system with twelve settings tested on 300, even if the second one shows a nicer equity curve. Yet it is common to judge a backtest by its result without counting what was tuned to get there.

There is no single correct ratio, but a few rough ways of thinking about it help:

- Count every choice, not just indicator periods. The session filter, the pair selection, the stop and target sizes, the "skip Fridays" rule, the minimum ATR, all of these are parameters, even if they were picked by looking at charts rather than by an optimiser.
- More trades per parameter is better. Many people use a rule of thumb of at least a few dozen trades for each free choice, and more if the edge is small. For a scalping system with a thin edge per trade, the bar is higher, because small edges are easily faked by noise.
- Watch the shape of the optimisation results, not just the peak. If performance is good only at one exact setting and falls apart a step either side, the peak is probably fitted. A broad plateau of decent results is more believable.

There is also the hidden kind of overfitting that comes from trying many ideas. If you tested fifty variations and kept the best, the best one has an advantage that comes partly from selection alone, even if each test looked honest.

Out-of-sample data, walk-forward testing and simplifying rules are the usual defences. How do you all decide when a strategy has too many moving parts? Do you have a rule of thumb for trades per parameter?