Optimization Check user guide: is your best setting a plateau or a lucky peak?
The Strategy Tester puts the best pass of an optimization on top. That pass is often the luckiest one. Halberd Optimization Check reads the optimization you have already run and shows whether the best setting sits on a plateau of good settings or stands alone as a peak. This guide walks through one check from the export to the verdict.
1. Run the optimization with a forward period
In the Strategy Tester settings choose your Expert Advisor, the inputs to optimize and a forward period (Forward: 1/4 or 1/3). The forward part is not used to rank the passes, so it shows what happened to the edge on data the optimizer did not see. A complete or a genetic optimization both work; with a genetic run some neighbours of the best setting may be missing, and the panel says how many were found.
2. Export two XML files
- In the Optimization Results tab, right-click and choose Export to XML.
- Save it into the MQL5\Files\OptCheck folder of your terminal (File > Open Data Folder).
- Do the same in the Forward Results tab, into the same folder.
Attach the program to any chart. It finds the files, pairs each backtest file with its forward file and shows the result. New files are picked up while it runs.
3. Read the summary page
Plateau or peak. The passes within one step of the best setting in every input are its neighbours. The panel shows how much of the best result the neighbours keep (median) and how many of them are profitable:
- STABLE: the neighbours keep at least 70% of the best result and at least 90% of them are profitable.
- FRAGILE: they keep less than 40%, or fewer than 60% of them are profitable. Move one input by one step and the result falls apart.
- MIXED: in between.
- NO EDGE: the best setting itself has no positive edge to keep.
- NO EFFECT: none of the optimized inputs changed any result. The optimization tested one setting many times; check that the inputs are really used by the EA.
Forward period. The per-trade payoff and profit factor of the best setting, backtest against forward: HELD, WEAKENED or FAILED.
Market direction. The share of all settings that made a profit. When almost all of them did, the result may come from the trend of the test period more than from the settings.
Plateau setting. The setting whose neighbourhood has the best median result, with its own forward result. This is the one I consider instead of the top pass.
The robustness score from 0 to 100 combines these with its formula on screen. It describes past results; it is not a forecast.
4. Check the other pages
The Map page shows a heatmap of two inputs; the best setting is framed white and the plateau setting gold, so a lone peak is visible at once. The Inputs page marks inputs with NO EFFECT; passes that differ only in those inputs are counted once, so they do not inflate the statistics. The Forward page shows whether passes that ranked high in the backtest also ranked high forward (Spearman correlation).
5. Keep a report
The Report button saves a one-page HTML report next to the XML files, with the verdicts, the map and the table. I keep one per strategy version, so I can see later why a setting was chosen.
Questions
Does it need my EA? No. It reads only the XML files, so it works with any Expert Advisor, symbol and timeframe, and the program never trades.
My terminal is not in English. Column names in other languages are handled by their position.
Can I try it first? The free demo runs in the Strategy Tester and shows two labelled sample reports from our own optimizations of a gold breakout EA.
Product page and free demo: https://www.mql5.com/en/market/product/213824


