Backtesting

Overfitting in trading: how to spot a curve-fitted backtest

By ForwardTested Research · Updated · 3 min read

Equity curve that rises smoothly on fitted data and falls on unseen data
Equity curve that rises smoothly on fitted data and falls on unseen data

Short answer

A strategy is overfitted when its rules describe the noise in past prices instead of a real edge. The tell-tale signs are a too-smooth equity curve, many tuned settings, results that collapse on data it never saw, and settings that only work at one exact value. Test it on an unseen period, other markets and nearby settings before you trust it.

Key points

On this page
  1. Seven warning signs
  2. Test 1: an out-of-sample period
  3. Test 2: parameter stability
  4. Test 3: other markets and timeframes
  5. Why overfitting happens to honest traders
  6. Degrees of freedom: a simple sanity check
  7. Overfitting in bought EAs
  8. Checking with your prop firm in mind
  9. Test 4: Monte Carlo and start dates

Seven warning signs

  1. The equity curve is almost a straight line.
  2. More than 5–6 tuned settings.
  3. Oddly precise values (RSI 37, stop 23.5 pips).
  4. Great on one symbol, poor on similar ones.
  5. Most profit comes from a few trades.
  6. Results change a lot when a setting moves one step.
  7. The developer only shows the period it was built on.

Test 1: an out-of-sample period

Split the data before you start. Build on, say, 2020–2024 and don't look at 2025 until the rules are final. Then run 2025 once. If it holds roughly the same profit factor and drawdown, good. If it collapses, the strategy was fitted. Walk-forward analysis repeats this many times.

Test 2: parameter stability

Change each setting a little in both directions. A real edge gives a plateau: neighbouring values perform similarly. A fitted one gives a spike: one value is great and its neighbours are poor. Prefer the middle of a plateau over the top of a spike.

Test 3: other markets and timeframes

A trend-following idea that works on gold should do something sensible on silver or an index. It doesn't need to be as good, but if it loses badly everywhere else, it's probably fitted to one chart.

Why overfitting happens to honest traders

You don't need to cheat to overfit. Every time you look at a backtest, notice a losing patch and add a filter that removes it, you fit the past a little more. Do that ten times and the backtest is beautiful and the strategy is fragile. The fix isn't to never improve a strategy; it's to keep a block of data you never look at until the very end, and to accept small imperfections instead of filtering every loss away.

Degrees of freedom: a simple sanity check

Count everything you chose by looking at results: indicator lengths, thresholds, session times, stop and target multiples, day-of-week filters. Each is a 'degree of freedom'. A rough guide is that you want many trades per degree of freedom. 300 trades with 4 tuned choices is far more believable than 300 trades with 15.

StrategyRough guide
3–4 tuned settingsReasonable for a few hundred trades
5–8 tuned settingsNeeds a long, varied sample and an unseen test
10+ tuned settingsVery likely fitted unless the sample is huge

Overfitting in bought EAs

Many commercial EAs are shown with a backtest that ends the day before release. The settings were tuned on exactly that period, so the backtest is in-sample by design. Ask for results on data after the release date, or run the EA's default settings yourself on a later period. If live or post-release results fall well below the showcase backtest, that's the overfitting gap.

Checking with your prop firm in mind

An overfitted strategy often shows a beautiful equity curve but a low pass rate across start dates, because its smoothness depended on one exact path. If the full-period backtest passes most start dates but the unseen period passes very few, treat it as fitted and don't buy a challenge yet.

Test 4: Monte Carlo and start dates

Shuffle the trade order and resample it thousands of times to see the range of drawdowns the same trades could have produced. For prop firms, also test every start date. A robust strategy passes a decent share of starts; a fitted one depends on one lucky path.

Questions traders ask

How many parameters is too many?
There's no fixed limit, but every extra setting needs more trades to justify it. With a few hundred trades, more than 5–6 optimised settings is a red flag.
Can machine learning strategies avoid overfitting?
They're more prone to it, not less. They need strict out-of-sample and forward testing.
Is optimisation always bad?
No. Optimisation finds a reasonable range. The danger is picking the single best result and trusting it without an unseen test.
Can a forward test prove there's no overfitting?
A long forward test that matches the backtest is strong evidence. A short one can only catch big problems.

Sources and method

Prop firm rules in this guide come from our open rules table (standard 2-step, phase 1, checked against public sources on 28 Oct 2026). Firms change rules often: confirm on the firm's own site.

Read next