entekhab.netentekhab.nettrilingual encyclopedia

Curve Fitting

ENGLISHCurve Fittingreference
فارسیبرازش منحنیRecommended equivalent
کوردیگونجاندنی چەماوەProposed equivalent — not standard
Category
Algorithmic Trading
Level
Professional

Simple definition

Adjusting a rule again and again until its past equity curve looks the way you want. Curve-fitting is the activity; overfitting is what it produces.

Professional definition

Tuning a strategy against the appearance of its historical equity curve: adding a filter to remove a drawdown, moving a threshold past a bad trade, excluding an awkward period. Each change is justified locally, and the cumulative effect is a rule shaped by the sample rather than by the market.

Technical definition

Curve-fitting is the behaviour; overfitting is the statistical state it produces. The distinction matters because they are detected differently: overfitting is diagnosed from the gap between in-sample and out-of-sample performance, while curve-fitting is diagnosed from the research process — how many variants were tried, what motivated each change, and whether evaluation data was consulted between changes. An honest optimisation can still overfit, and curve-fitting makes overfitting near-certain while leaving no trace in the finished code.

Academic definition

The iterative adjustment of a decision rule in response to its observed historical performance path, as distinct from the resulting statistical condition of having fitted sample-specific noise.

Mechanism

The equity curve is a single realised path, and almost any unwanted feature of it can be removed by one more condition. Each removal also removes the evidence that the rule carries risk, so the process converges on a rule with a smooth history and an unconstrained future. Nothing in the finished code records how many attempts preceded it, which is why the research log is the audit trail.

In practice

Who uses it
Everyone who develops a rule by looking at its backtest, which is almost everyone — so the defence has to be procedural, not personal.
Why it matters
Naming the behaviour separately from its consequence makes it auditable: variants tried can be counted even when overfitting cannot be measured directly.
Limitations
There is no test for it in the finished artefact. Only a research record, a parameter budget fixed in advance and untouched evaluation data constrain it.

Common mistakes

  • Adding a condition whose only justification is one historical drawdown.
  • Excluding a period because the rule did badly in it.
  • Not recording how many variants were tried.

Examples

numeric

A rule makes 120 trades with a 32 percent maximum drawdown. Four filters, each added after seeing a bad stretch, leave 74 trades and an 11 percent drawdown. The 46 removed trades were the risk, not a discovery about the market.

Given
  • original: 120 trades, 32% maximum drawdown
  • after four post-hoc filters: 74 trades, 11% maximum drawdown
  • each filter was added after observing a specific losing stretch
Steps
  1. trades removed = 120 - 74 = 46
  2. share removed = 46 / 120 = 38%
  3. drawdown reduction = 32% - 11% = 21 percentage points, entirely in-sample
38% of trades excluded; the drawdown improvement is an artefact of the sample

The same four filters applied to data they were not derived from would not be expected to remove 21 points of drawdown. Counting the filters and their motivation is the diagnosis.

research

Two researchers submit identical final code. One wrote it from a hypothesis and tested once; the other arrived at it after ninety variants. The code cannot distinguish them, and only the second result is worthless.

Related terminology

related
Overfitting Parameter Optimisation In-Sample versus Out-of-Sample Data Snooping Backtesting Walk-Forward Testing Lookahead Bias Trade Journal Hindsight Bias
Commonly confused with

Overfitting

Curve-fitting is the act: tuning until the equity curve looks good. Overfitting is the statistical consequence: a rule that has absorbed sample noise and will not generalise. One is diagnosed from the research process, the other from the in-sample to out-of-sample gap.

Sources

Technical Analysis: Modern Perspectives
CMT Association · chapters on testing, optimisation and the evidence base for rule-based methods
https://cmtassociation.org/wp-content/uploads/2019/01/Technical-Analysis-Modern-Perspectives-CMT-Association.pdf URL verified
Portfolio Performance Evaluation (refresher reading)
CFA Institute · cautions on inference from historical performance
https://www.cfainstitute.org/insights/professional-learning/refresher-readings/2026/portfolio-performance-evaluation URL verified

Editorial status

Needs expert reviewconsensusv1.02026-11-05

Flagged by the editor as uncertain on a linguistic, mathematical or regulatory point.

Kurdish headword is a descriptive proposal by this project. The separation of curve-fitting as behaviour from overfitting as statistical state is this encyclopedia's editorial framing of a distinction the literature makes in substance but not always in vocabulary; the figures in the example are illustrative.