MT5 genetic optimization: find good parameters without fooling yourself.
How the MT5 fast genetic algorithm searches EA inputs, why the top pass is often a lucky peak, and a free tool to check robustness before trading.
What the genetic algorithm does
A full grid search tests every combination of your inputs, which quickly becomes millions of passes. The MT5 fast genetic algorithm instead starts from a random population of settings, keeps the fittest, mixes them (crossover), changes a few values at random (mutation) and repeats. It finds high-scoring areas in a fraction of the passes, but it is still only maximising your criterion on the dates you gave it.
Why the best pass often fails
Test enough settings and some will fit past noise almost perfectly. Four EMA, stop and target inputs already give about 4 million combinations. The top pass by profit is therefore the most likely to be curve-fitted. Treat optimisation as generating candidates, not choosing a winner: keep unseen data back, compare neighbouring settings and look at how results hold across time windows.
A safer optimisation workflow
Optimise on the first 60–80% of history only. Shortlist several distinct sets, not one. Re-test each on the later unseen period, move every input one step to check for a plateau, Monte Carlo the trade list and run a walk-forward. Keep risk per trade fixed and never optimise lot size or loss limits. Only then load the set into MT5 and confirm with real ticks.
BoltIQ Markets builds software and research tools, not brokerage or investment services. No customer trading deposits are accepted.