GLOSSARY · AUTOMATION
What is overfitting in a trading strategy?
Overfitting is tuning a strategy so closely to historical data that it captures the noise of that specific period rather than any repeatable market behaviour.
Also called: Curve fitting
What it means
The mechanism is straightforward. Given enough parameters and enough attempts, any dataset can be fitted almost perfectly — and the better the fit to one period, the less likely it is to describe anything general. The resulting backtest looks superb precisely because it is wrong.
Why it matters
It is rarely deliberate. It happens through ordinary iteration: adjust a threshold, the result improves, keep the change. Each individual decision is reasonable and the cumulative effect is a system shaped entirely by one sample of history.
What this changes in practice
Two defences actually work. Hold data back and test once, and prefer fewer parameters over more. We hit this directly — an earlier version scaled reward-to-risk by market regime, which improved in-sample results and turned out to be fitting noise. Removing the feature and using a single 2.0 ratio everywhere made the system better by making it simpler.
Related terms
- Out-of-sample testingOut-of-sample testing evaluates a strategy on data deliberately withheld during development, to …
- BacktestingBacktesting runs a strategy against historical data to estimate how it would have performed, and…
- Walk-forward analysisWalk-forward analysis repeatedly fits a strategy on a rolling window of data and tests it on the…
- Statistical significanceStatistical significance is the judgement that an observed result is unlikely to have arisen by …
Educational information only, not financial advice. Trading leveraged products carries substantial risk of loss. Last updated 2026-08-11.