Walk-forward analysis for MT5: re-optimise, then trade the next window blind.
What walk-forward analysis is, how it differs from the MT5 forward test, how to read walk-forward efficiency, and a free browser walk-forward tool.
How walk-forward works
Split history into consecutive windows. Optimise on the first training window, then trade the following test window with those settings and no changes. Extend or roll the training window, re-optimise and test the next window. Stitch the test windows together: that combined result is closer to how the EA would have behaved if you had re-optimised it in real time.
MT5 forward test versus walk-forward
The forward option in the Strategy Tester (1/2, 1/3, 1/4 or a custom date) gives one in-sample and one out-of-sample split, and in genetic mode it only forward-tests a subset of passes. That is useful but is a single check. A walk-forward repeats it several times, so one lucky window cannot carry the result.
Walk-forward efficiency
Walk-forward efficiency compares out-of-sample return per bar (or annualised) with in-sample return. Around 50% or more is commonly treated as acceptable; near zero or negative means the optimised edge does not carry forward. Also count how many test windows were profitable: consistency matters more than the stitched total.
BoltIQ Markets builds software and research tools, not brokerage or investment services. No customer trading deposits are accepted.