How to tell if your Expert Advisor is overfit before it costs you a challenge.
Five practical checks for curve fitting in MT4/MT5 EAs: out-of-sample, parameter plateau, Monte Carlo, walk-forward and drawdown versus your limit.
Signs an EA is curve-fitted
A smooth equity curve with very few trades, a profit factor far above 3, many optimised inputs, and settings that look oddly precise (EMA 37, stop 23.5 pips) are warning signs. The clearest one: results that collapse when the test period or a single input changes slightly.
The five checks
1) Out-of-sample: optimise on the first 70% of history and test once on the last 30%. 2) Plateau: move each input one step; profit should degrade gently, not collapse. 3) Monte Carlo: skip about 10% of trades and reshuffle their order hundreds of times; read the worst 5% of outcomes. 4) Walk-forward: re-optimise on growing windows and trade the next window blind. 5) Compare the 95th-percentile Monte Carlo drawdown with your account or prop-firm limit.
Reading the verdict
Robust: profitable on unseen data, stable neighbours and acceptable worst-case drawdown. Fragile: profitable out-of-sample but failing one check, so trade it only on demo while you investigate. Overfit: lost money on unseen data or needed too few trades, so discard it rather than re-optimising until it looks good again.
BoltIQ Markets builds software and research tools, not brokerage or investment services. No customer trading deposits are accepted.