Overfitting: How Curve-Fitting Hides in Reasonable Choices

Overfitting: How Curve-Fitting Hides in Reasonable Choices

Your test just produced the best result yet — a parameter set that turns five flat years into a smooth climb. This article shows where curve-fitting hides in ordinary, reasonable-looking choices: which parameters you kept, which period you chose, which symbols survived, and which filter you added last. By the end, you will be able to audit your own winning result for the five places the fit is most likely hiding.

Key points

  • Overfitting means fitting the noise in one sample. The strategy memorises history instead of capturing anything that repeats.
  • It rarely looks like cheating. It hides in selecting the best parameter, the kindest period, the best-performing symbol, and the filter added after each losing run.
  • The more variations you try, the better the best one looks by pure chance. Selection is itself a form of fitting.
  • The defences are boring on purpose: fewer parameters, choices fixed in advance, and performance that survives on data the selection never touched.
  • A result that collapses when a parameter moves slightly is, at best, weak evidence: treat it as a property of the sample until fresh data says otherwise.

Start trading with Exness

You can open an account here:

In plain words

Overfitting means your rules have memorised the accidents of one stretch of history instead of capturing something that repeats, and it usually arrives through sensible-looking choices: keeping the parameter that scored best, starting the test in the kindest year, reporting the one symbol that worked, adding a filter after each losing run. The trap is selection itself — if you test 100 variations of a worthless idea, their results scatter around zero and the best one will look genuinely good purely by luck, and the more variations you try, the better that winner looks and the less it means. A quick shape check helps: a result that exists only at one precise setting, like a moving-average period of 27 earning twice what 26 and 28 earn, is a warning sign, while a broad plateau — periods 22 to 34 all scoring similarly — is sturdier. The defences are deliberately dull: fewer parameters, choices fixed in advance, your trials counted, and the winner judged on data the selection never touched.

1. What fitting actually means

Every historical sample contains two things mixed together: whatever real effect your idea is chasing, and a large amount of accident — the particular order in which news, holidays and other traders happened to arrive. A fitted strategy cannot tell the two apart. It shapes its rules around both, and the accident does not repeat.

This is why overfitting is not mainly a sin of greedy beginners with 14 indicators. It is the default outcome of any process that keeps what worked and discards what did not, run long enough over the same data. The tester is not lying to you; it is answering a different question from the one you think you asked. You asked “does this idea work?” It answered “can these rules be shaped to fit these years?” — and the answer to that is almost always yes.

A fitted result describes the past; its forward relevance needs validation that accounts for how it was selected.

2. The five hiding places

Hiding placeHow it looks from the insideWhat it does to the result
Parameter selection“I tested periods 10 to 60 and 27 was clearly best”Picks the value that best fits this sample’s accidents
Period selection“I started the test in 2020; earlier data is a different market”Removes the conditions the idea handles badly
Symbol selection“It works on GBPJPY; the other eleven pairs were not suitable”Reports the winner of an unannounced contest
Rule accretion“Each filter fixed a real problem I saw in the results”Builds a rule for every losing episode in the sample
Indicator stacking“The third indicator confirms the other two”Adds correlated inputs that together trace the sample more closely

Read the middle column again: every entry is a sentence a careful person might honestly say. That is the point. Overfitting does not announce itself as sloppiness; it accumulates through defensible micro-decisions, each of which spends a little of the sample’s honesty.

The common currency is selection. Each choice keeps the variant that scored best on data already seen. Selection over enough variants manufactures an edge out of noise alone — which is the subject of the next section.

3. Why the best of 100 tries is lying to you

Suppose 100 variations of an idea are all worthless — zero real expectancy. Test each one and the results will scatter around zero: some lose, some win, by luck. The best of the 100 will not look average. It will look good — sometimes strikingly good — because you selected the extreme of a scatter.

Three consequences follow, and none of them requires advanced statistics:

  • The more variations you try, the better the winner looks — and the less it means. A search over 10 settings and a search over 10,000 settings produce winners of very different plausibility from identical worthlessness.
  • The winner’s score is biased upward by construction. It was chosen because it was the highest. In the all-worthless case above, its expected score on fresh data is zero — the average of what was tried. When variations genuinely differ, the destination differs, but the bias does not: selection tends to make the winner’s reported score optimistic relative to its underlying performance, even though its next observed result can land higher or lower.
  • You cannot repair this by admiring the winner harder. The repairs are accounting (count your trials, as in Article 1) and fresh data the selection never touched (Article 3) — strong evidence, though never proof: fresh data can be small, unrepresentative, or quietly contaminated each time you peek at it and adjust.

4. Peaks and plateaus

Parameters give overfitting a visible shape. Test a moving-average period across a range and plot the result for each value. Two shapes recur:

  • A peak — one value scores far above its neighbours: period 27 earns twice what 26 and 28 earn. A sharp peak can reflect sample-specific fitting — a real market effect has no obvious reason to respect the number 27 — though genuine thresholds do exist, so read it as a prompt to investigate.
  • A plateau — a broad range of values scores similarly: periods 22 to 34 all produce comparable results. A plateau indicates local parameter insensitivity in this sample — consistent with the rules responding to something coarse, such as trend persistence or session flow, but not proof of it. Either shape can arise from noise, from the search procedure, or from a genuine effect; neither establishes the cause.

The working rule: prefer the middle of a plateau to the top of a peak — and fix that selection procedure in advance, because a plateau chosen by eye from the same data can itself be fitted. A sharp peak can occasionally mark a genuine threshold, so treat it as a warning to investigate, not a verdict. But a result that exists at only one precise setting should be treated as unproven until it survives data the selection never touched. The same logic applies to thresholds, stop distances and time windows — anywhere a number was selected because it scored best.

5. An audit for a suspiciously good result

Run this checklist over any result that pleases you, before you let it please you:

  1. Count the trials. How many variations, periods and symbols were tried, including the ones discarded informally? If the count is large and unrecorded, discount the result accordingly.
  2. Move each parameter. Nudge every selected value up and down. A result that survives its neighbourhood is sturdier than one that falls off a cliff.
  3. Find the profit’s address. Which months, symbols and individual trades produced the gain? Concentration is a warning sign: profit with a single address is an episode until broader evidence promotes it.
  4. Check the trade count. Averages over a few dozen trades are mostly weather. (The sample-size question gets its own treatment in a later article of this series.)
  5. Ask what the rules remember. If a filter exists because of one specific crash in the sample, the strategy has memorised that crash. It will meet different crashes live.

None of these checks can prove a result genuine. They can only catch the common ways a result is fake — which, in practice, is most of the value on offer.


Summary — what to take away

  • Overfitting is selection pressure applied to noise: it accumulates through reasonable choices, not through obvious cheating.
  • The five hiding places are parameter, period and symbol selection, rule accretion, and indicator stacking.
  • The best of many trials is biased upward by construction; count your trials and judge the winner against fresh data.
  • Prefer plateaus to peaks, with the selection rule fixed in advance — and audit any result that looks too good.

Next reads

Designing a Backtest That Can Actually Falsify Your Idea — the test card that makes trials countable.

Walk-Forward Analysis: Rolling Windows in Practice — the structural defence: selection that never sees its own exam.

FAQ

Q: Is optimising parameters always overfitting?
A: No. Choosing a coarse setting from a broad plateau is normal design. Selection risk grows when choices are fine-grained and score-driven and never tested on unseen data — but coarse choices overfit too, given enough trials. What matters is the whole research process: how much was tried, and what the survivors were graded on.

Q: How many parameters are too many?
A: There is no universal number. The question is whether the sample — its trade count and variety — can support the freedom you gave the rules. Each added parameter must earn its place against fresh data, not against the sample that suggested it.

Q: Does testing on more data fix overfitting?
A: It helps, but it is not a cure. Selection over a longer sample can still fit that sample’s regime. The strongest check remains performance on data that played no part in any selection decision — graded with the same caution about size and representativeness as any other sample.

Q: My strategy works on only one symbol. Is that overfitting?
A: Not automatically. A plausible, prespecified mechanism — the symbol’s costs, session behaviour or participant mix — strengthens the interpretation, and a precisely defined single-symbol pattern can be tested in its own right. But if the symbol was selected after comparing many, the survivor needs fresh validation before it means anything.

Q: Can Monte Carlo analysis detect overfitting?
A: Not directly. The trade-sequence resampling in Article 4 examines the risk of the path — how bad the drawdowns of a given trade list can get — and takes the trade list as given, which is exactly what overfitting calls into question. (Monte Carlo methods in the broader statistical sense have other uses; the qualification here is about the shuffle and bootstrap of Article 4.) Use walk-forward to probe the fit question, Monte Carlo for the path question — and remember both produce evidence, not verdicts.

Sources: R. Pardo, “The Evaluation and Optimization of Trading Strategies”, 2nd edition (Wiley, 2008) — optimisation and curve-fitting. D. Bailey, J. Borwein, M. López de Prado and Q. Zhu, “The Probability of Backtest Overfitting” (Journal of Computational Finance, 2017) — selection bias across many trials. Checked: 21 November 2026.

This article is information only and is not investment advice. Forex and CFD trading involves a substantial risk of loss, including the possibility of losing more than you deposited with some account types and jurisdictions. Backtested results are hypothetical, are calculated under stated assumptions, and do not guarantee or predict future performance. Make sure you fully understand how leveraged products work before you consider trading with real money.

Disclosure: Broker Cost Check is reader-supported. If you open an account through a partner link on this page and trade, Exness pays us a share of the revenue from your trading activity under its partner programme. You pay us nothing: our payment comes from Exness, out of that revenue. How we make money: How Broker Cost Check works — method and how we make money


Comments

2 responses to “Overfitting: How Curve-Fitting Hides in Reasonable Choices”

  1. […] Overfitting: How Curve-Fitting Hides in Reasonable Choices — why selection needs this structural defence. […]

  2. […] Overfitting: How Curve-Fitting Hides in Reasonable Choices — the failure mode this design defends against. […]

Leave a Reply