Skip to content

Metrics

Curve fitting

Overfitting a strategy to historical data: so many parameters that the backtest looks perfect but the strategy fails in real time. The more degrees of freedom, the higher the curve-fitting risk.

An example

You set a 37-period moving average, a 23-pip stop and trade only on Tuesdays and Thursdays because that is where the backtest looks best. That is curve fitting.

Why it matters

An overfitted system describes past noise, not an edge, and breaks as soon as it trades live. The fewer rules and parameters, the lower the risk of falling into it.

From the term to the number. See it in the demo.

The demo applies this vocabulary to 200 sample trades: every ratio with its sample size, every mistake with what it costs.