Most of my MT5 strategy ideas die in out-of-sample testing - that's normal and healthy. But "OOS failed" is a diagnosis trigger, not a verdict. One step I now always run before discarding an idea: split the OOS window by volatility regime and look at WHERE it failed.
The method is simple: compute a rolling volatility proxy (ATR(14) on your chart timeframe, or realized vol of daily returns), rank the OOS bars by it, and split the OOS equity curve into a high-vol half and a low-vol half. Then read the failure pattern:
Fails everywhere, roughly evenly: the edge probably doesn't exist, or it's smaller than costs. Don't resurrect it.
Fails almost entirely in one regime: the edge is regime-conditional, and that changes what you do with the idea. One subtlety: check whether the high-vol failure is the strategy or simply the costs - spreads widen exactly when volatility spikes, so re-run that slice with honest (or doubled) spread/commission before blaming the logic.
Makes money only in quiet markets: you didn't find a trend system, you found a vol-selling system with a trend face. Position sizing and drawdown expectations should reflect that before it touches a live account.
Why this matters in MT5 specifically: the strategy tester's summary stats hide regime concentration. A net-positive-per-year backtest can have its entire P&L produced in one high-volatility month and bleed everywhere else - averages bury that. Also use the tester's own cost controls: a re-run with doubled spread/commission that kills the "edge" was mourning fill fantasy, not a regime problem.
The honest trap: regime-splitting is diagnosis, not rescue. The moment you add a "vol filter" to make the OOS pass, you have curve-fitted the OOS - the filter was chosen from the same data it "fixes". If a regime condition looks real, the correct move is to re-run the whole walk-forward with the filter derived from in-sample logic only.
Concrete case from my own pipeline: an idea failed OOS overall, but the split showed losses concentrated almost entirely in high-vol weeks and flat-but-alive behavior in the other regime. I didn't delete it and I didn't trade it - I documented it as regime-limited and moved on. The point of the split is to stop mislabeling "wrong regime" as "no edge" (and to catch the reverse, too).
Happy to go deeper on any point if useful.