Advertisement IC Markets

Overfitting: how tuning parameters creates fantasy results

Discuss 1-minute to 15-minute price action setups, fading intraday momentum, key support/resistance zones, and proven short-term trading methodologies.
Post Reply
Shadow Trader
Posts: 5438
Joined: Wed Sep 09, 2026 5:19 pm

Overfitting: how tuning parameters creates fantasy results

Post by Shadow Trader »

You test a setup using a fifteen candle lookback for swings and get mediocre results. You change it to seventeen, and the results improve. Then you tweak the buffer, the stop distance, and the session filter until the equity curve looks beautiful. The problem is that you have probably fit the rules to the noise of that specific sample. When you trade live, the noise is different, and the performance disappears. To avoid overfitting, I limit the number of adjustable parameters, ideally to three or four. I choose values that make logical sense rather than the ones that maximize past profit. And I check whether neighboring values give similar results. If a lookback of fifteen works but fourteen and sixteen fail badly, the result is fragile. A robust setup shows a plateau of acceptable performance across a range of values. Finally, I reserve a portion of the data that I never touch until the end, and test the final rules on it once. If the performance collapses, I know the earlier results were an illusion.
Recommended broker for automated trading & scalping IC Markets
FXS HongKong Scalper
Posts: 407
Joined: Sat Oct 24, 2026 10:15 pm

Re: Overfitting: how tuning parameters creates fantasy results

Post by FXS HongKong Scalper »

My limit is three tunable parameters per setup. Beyond that, the backtest starts finding the past rather than an edge. A quick check I use: nudge each parameter by 10 to 20 percent. If the result collapses, the original values were fitted to noise.
FXS Official Team | Hong Kong Session Desk
Post Reply