Ballast Backtest Stress Test: full manual

29 November 2026, 11:55
Artis Bergs
0
5

This is the full manual of Ballast Backtest Stress Test for MetaTrader 5. It answers one question about an optimised Expert Advisor: is the best backtest a real edge, or what the same search would also find in random data?

Why a search finds something even when there is nothing

An optimiser tries hundreds or thousands of input combinations and shows you the best one. Even on prices without any pattern, the best of a thousand tries looks good: it is the luckiest one. So a good best pass proves little by itself. The useful comparison is: how good is the best pass on real prices compared with the best pass of the same search on prices where no pattern can exist?

That is what the tool measures. It builds noise worlds from your symbol's own M1 history: every one-minute move is swapped with the move at the same time of day on a random day, and flipped up or down at random. The volatility hour by hour, the spread and the shape of the bars stay; every directional pattern (by hour, weekday, trend) is gone. You run your usual optimisation on the real symbol and on the noise worlds, and the tool compares the bests.

Before you start

  • A single-symbol EA that trades the chart symbol (the noise worlds have other symbol names, so an EA that trades fixed symbols cannot be tested on them).
  • Enough M1 history for your period. If it is missing, open an M1 chart of the symbol and scroll back, or let the tool wait while the terminal downloads it.
  • Time: the test costs 5 extra optimisations of your EA (2 more for the cost check). Use the same optimisation you would use anyway.
  • Memory: worlds are built from M1 bars. Long histories (5-10 years) with many tester cores need a lot of memory. If the PC runs short, use fewer tester cores (Strategy Tester > Agents), a shorter period, or fewer worlds.

Step 1 - build the worlds

  1. Open a chart of the symbol (any timeframe) and attach Ballast Backtest Stress Test.
  2. Inputs: From and To = the backtest period you will use (for example 2023.01.01 and 2025.01.01). Leave them empty for the last two years. Noise worlds = 5 (3 to 10). Cost world 1/2 = spread x1.5 and x2.
  3. Press Build noise worlds. The panel shows each world as it is built: EURUSD.noise1 .. EURUSD.noise5. They are custom symbols with the contract of the real symbol (digits, tick value, margin).
  4. Optional: press Build cost worlds for EURUSD.cost150 and EURUSD.cost200 (the real history with a wider spread).

Step 2 - run the same optimisation on each symbol

  1. Clear the tester cache first (close the terminal and delete the files in the Tester\cache folder of the data folder, or start a fresh optimisation). The tester otherwise adds old passes to a run, and the real symbol gets a bigger search than the worlds. The tool warns you when that happens.
  2. In the Strategy Tester pick your EA, the real symbol, your timeframe, exactly the dates shown on the panel, model 1 minute OHLC or Every tick (not "Every tick based on real ticks": the worlds have bars, not real ticks), and your usual inputs and ranges. Run the optimisation (genetic or complete).
  3. When it has finished, right-click the Optimization Results > Export to XML and save the file into the MQL5\Files\BallastStress folder of the data folder (File > Open Data Folder). The file name does not matter: the tool reads the symbol, EA, timeframe and dates from inside the file.
  4. Change only the symbol to EURUSD.noise1 and run the same optimisation again. Export. Repeat for noise2 .. noise5.
  5. Cost worlds: run the same optimisation on EURUSD.cost150 and cost200. If you use a genetic search, make sure your chosen settings are included (for example a slow complete optimisation in a small range around them), otherwise the tool compares best with best.

Step 3 - Analyze

Press Analyze. The verdict is on top, followed by three sections. An HTML and a text report are written to MQL5\Files\BallastStress.

  • LIKELY A REAL EDGE: the best pass on real data beats the best pass of every noise world by more than 10%, with at least 30 trades.
  • UNCLEAR: above some noise worlds, not all. Usually: test a longer period, or the edge is too small to separate from search luck with this much searching.
  • LIKELY SEARCH LUCK: the real best is not above the median noise world. The same search finds results as good in random data: do not trust this backtest.

Settings shows your chosen settings (or the best pass) and their neighbours, each input moved one step. A spike that collapses when one input moves is flagged. A broad plateau is stable but not proof: in our own test an over-fitted EA sat on a broad plateau too.

Costs shows how much of the result survives a spread x1.5 and x2.

Enter Settings you plan to use (for example InpPeriod=20;InpStop=300 ) to judge those settings instead of the best pass.

Step 4 - clean up

Press Remove worlds to delete the test symbols of this symbol. A symbol that is still open on a chart or used by the tester is kept; close it and press again.

How we tested it

  • A real edge planted into EURUSD (a 15-pip rise on Tuesday and Thursday afternoons): best on real data +2747, best on 5 noise worlds +1154 .. +1451: LIKELY A REAL EDGE.
  • An over-fitted EA (entry hour, weekdays, direction, stop, target and holding time optimised on EURUSD H1, Jan 2024 - Jun 2025): best +929 on real data, +1150 .. +2271 on noise worlds: LIKELY SEARCH LUCK. Those settings lost 630 USD in the following 16 months.
  • A trend robot that later failed out of sample: +551 vs noise +13 .. +627: UNCLEAR, no green light. It had 26 trades - too few for any verdict, which the tool now says.
  • For comparison, re-running the over-fitted EA on reshuffled real days (a common robustness method) showed it profitable in 20 of 20 worlds. Reshuffled days keep the quirk the optimiser found; noise worlds do not.

Limits

  • A verdict is evidence about the tested period, not a promise for the future. A real edge in the past can stop working.
  • Small edges hidden in a very large search can read as UNCLEAR: the result is honest, the sample is too small to tell.
  • Strategies that depend on long-lasting volatility regimes or on the exact sequence of days can behave differently in noise worlds; compare with an out-of-sample period as well.
  • Multi-symbol EAs are not supported by the noise test.

Questions

The panel says "only N passes vs M on real data". The searches were not equal - usually old passes from the tester cache. Clear the cache and re-run the real symbol.

"Other EA, timeframe or dates than the real run: skipped". All files must come from the same EA, timeframe and dates as the real run. Check the dates on the panel.

"No M1 history". Open an M1 chart of the symbol, scroll back to the start of your period, then build again.

Does it trade? Never on a chart. In the Strategy Tester (where the automatic Market check runs it) it opens small demo trades so that the check sees normal trading.