The 10 Robustness Tests Every MT5 Strategy Should Pass
A backtest shows one path through one history. A robustness test asks whether the result survives when the history, the order of the trades, the costs or the rule’s numbers change a little. AlgoLens Factory runs ten such stages, in a fixed order, on every candidate strategy. 8 of them can reject it and 2 only report. A strategy is approved only if it clears every stage that is switched on, and the first failure ends it.
- Stages
- 10, run in order (8 can reject, 2 report only)
- Data split
- In-sample 60% · out-of-sample 20% · sealed OOS2 20%
- Monte Carlo
- 200 shuffles of the trade order + 40 reruns on noisy prices, per candidate
- Costs used
- Your broker’s history, with the spread measured asset by asset
- Defaults
- The Preferred mode; every stage and threshold can be changed
Facts checked against the app and its license on November 9, 2026.
The ten stages, in the order they run
Before the stages, every candidate has already passed the in-sample/out-of-sample check (by default a profit factor of at least 1.2 in-sample and 1.1 out-of-sample, at least 30 trades and at least 10 of them out-of-sample) and any filters you set. The stages below come after that, with their default thresholds.

Sealed OOS2Reports only
The last 20% of the history stays sealed during the whole search. No rule, filter or number is chosen while it is closed; it opens only in the final report.
Every other test runs on data the search has already seen. A slice nothing was tuned on is the closest a backtest gets to the future.
To pass: Reports only. It shows how the strategy did on the sealed slice and never rejects.
Look-aheadCan reject
Every signal is recomputed with the history cut at that bar. If the signal changes, the rule was reading a bar that had not closed yet.
A rule that peeks at the close of a day that has not ended produces a beautiful backtest and a live account that falls apart. Walk-forward and Monte Carlo cannot catch it, because the future is still inside the history they run on.
To pass: No signal may change when the future is cut off.
Parameter stabilityCan reject
24 variations of the rule numbers, the stop and the target, each moved up to 15% either way.
If a strategy only works at one exact setting, it learned the past rather than a pattern. Its neighbors should still work.
To pass: At least 50% of the 24 variations stay profitable.
Monte Carlo · trade orderCan reject
The same trades replayed in 200 random orders. The final profit stays the same; the drawdown along the way changes.
The order the trades happened in was luck. Shuffling it shows the drawdowns the same edge could have produced.
To pass: It fails if more than 10% of the 200 orders take the account past a 50% drawdown, or if the median return-to-drawdown falls below 1.0 or below 70% of the original’s.
Monte Carlo · history noiseCan reject
The whole backtest runs again 40 times on history whose prices were moved slightly.
A real edge does not depend on the exact tick where a price printed. A fragile rule breaks when the candles move a little.
To pass: At least 70% of the 40 runs end in profit, no more than 10% end in ruin, and the return-to-drawdown stays at 1.0 or more.
Trade scenariosCan reject
Takes out the best 5% of the trades and still demands a profit. Four more scenarios can be switched on: one side only, a cap per day, every other signal skipped, and a fixed lot.
Many strategies live on a handful of outsized wins. Without them, is anything left?
To pass: Still profitable without the best 5% of trades (and in every other scenario you switch on).
Cost stressCan reject
Nine worse executions: commission ×1.5 and ×2, slippage +5 and +10 points, 10% and 25% of trades skipped, spread ×1.5 and ×2, and cost plus skips together.
A live account pays more than a backtest: wider spreads at news, slippage, orders that never fill. A thin edge disappears there first.
To pass: At least 50% of the nine stressed versions stay in profit.
Neighboring timeframesCan reject
The same rule run on the timeframes above yours. For a strategy built on M30, that is H1 and H4.
A pattern that is real usually shows up, weaker or stronger, on the next charts up. One that exists on a single timeframe is suspect.
To pass: At least one of the timeframes above ends in profit. A lower timeframe, when there is one, is shown for information only.
Neighboring marketsReports only
The same rule run on the related assets you pick in the settings.
Useful context: a rule that also works on a related market is less likely to be a coincidence of one price series.
To pass: Reports only. It shows the results and never rejects.
Walk-forwardCan reject
Picks the rule numbers on a past window only, then tests them on the stretch that follows, window by window across the history.
This is how the strategy would have been run in real time: choose with what you know, trade what comes next.
To pass: At least 55% of the walk-forward runs and the combined total end in profit, no single run supplies more than half of the profit, and no run draws down more than 35%.
What the stages did in one real run
One mining run from October 2026, on gold, 30-minute chart, history from September 1, 2024 to August 31, 2026, in the Preferred mode. These are that run’s numbers, not an average; other settings give other numbers.
| Step | Strategies | What happened |
|---|---|---|
| Mined | 138,000 | Versions the Factory built and backtested |
| Quick screen | 13,464 | Cleared the first screen, before your filters |
| Candidates | 40 | Cleared the in-sample/out-of-sample check and the filters; mining stops when the quota fills |
| Approved | 4 | Cleared every stage that was on |
Of the 36 candidates that were rejected, 27 stopped at walk-forward, 8 at the trade-order Monte Carlo and 1 at neighboring timeframes. The other stages that can reject did not stop anyone in this run. In an earlier, harder run (every stage switched on, a year and a half of history), 115,800 versions were mined, 40 became candidates and none were approved.
What the MT5 Strategy Tester covers, and what it leaves to you
MetaTrader 5’s Strategy Tester is a good backtest engine. It models ticks, optimizes inputs, can hold back a single forward period after an optimization, and lets you set the spread and add random execution delays. What it does not do on its own is ask whether a result is robust:
- no reshuffling of the trade order (Monte Carlo) and no reruns on slightly moved prices;
- no pass rule for the neighbors of your chosen inputs;
- no rolling walk-forward, window after window;
- no audit for rules that read a bar before it closed.
You can do these by hand, with exports to a spreadsheet or a script. The Factory runs them on every candidate automatically, and only lets you export the ones that pass.
Questions
If a strategy passes all ten stages, will it make money?
No test can promise that. Passing means the strategy survived the tests you chose, on the history you chose, with your broker’s costs. Markets change, and past results, in a test or a live account, do not guarantee future results.
Can I change the thresholds or switch stages off?
Yes. The numbers on this page are the defaults of the Preferred mode. Each stage can be switched on or off and its limits changed in the settings. A strategy is approved only if it clears every stage that is on.
What happens to a strategy that fails a stage?
It stops at the first stage it fails, is not approved and is not kept with your strategies. The Factory reports the stage and the reason, with the number it missed, and does not adjust a strategy to make it pass.
Why does look-ahead matter if I only use standard indicators?
Because the leak is usually in how a rule reads the indicator, not in the indicator itself: reading a higher-timeframe value before its bar has closed is enough. The Factory redoes every signal with the history cut at that bar to catch it.
Does MetaTrader 5 run these tests by itself?
The MT5 Strategy Tester runs backtests and optimizations, can keep a single forward period after an optimization, and lets you set the spread and random execution delays. It has no built-in trade-order Monte Carlo, price-noise reruns, neighboring-parameter pass rule, rolling walk-forward or look-ahead audit.
Can the Factory test an EA I already have?
No. The ten stages run on strategies built in the Factory, because the Factory needs the rule itself, not only its trades, to recompute signals, move parameters and rerun the history.
Try it on your own setups
14-day free trial with every feature, no card. You can export the code of up to 3 different strategies during the trial. Windows 10 or 11 and MetaTrader 5.