Blog / Strategy
Strategy

Spread Regime Breakout

Disclaimer: This article is for educational and informational purposes only. It does not constitute financial or investment advice. Trading forex and CFDs carries significant risk of loss. Past performance of any strategy — including backtests — does not guarantee future results. Never trade with money you cannot afford to lose.

What Is This Strategy?

The Spread Regime Breakout strategy is a channel breakout system for MetaTrader 5 that adds an unusual liquidity filter built on the Corwin & Schultz (2012) effective bid-ask spread estimator. Most breakout systems try to separate genuine range breaks from false ones using volume, volatility, or a moving-average filter. This strategy takes a different route: it reconstructs the market's hidden transaction cost — the effective spread — directly from the high-low ranges of recent bars, and only acts on a breakout when that estimated spread is calm.

The core idea rests on a piece of market microstructure research. A single bar's high-low range reflects both the true volatility of the asset and the "bid-ask bounce" — the tiny back-and-forth between the buy price and the sell price. A two-bar range dilutes that bounce. By comparing the two, the Corwin-Schultz method isolates an estimate of the proportional spread. In plain terms, a wide estimated spread suggests a thin, turbulent tape where breakouts often get stop-hunted and reverse, while a tight estimated spread suggests a deep, liquid, orderly market where a genuine range break has real order flow behind it. The strategy therefore stands aside when the tape looks thin and only trusts breakouts when liquidity looks healthy.

As a learning tool, this strategy suits traders who already understand basic breakout logic and want to explore how microstructure concepts — spread, liquidity, and adverse selection — can be turned into a mechanical filter. It is designed for clean, trending or momentum-driven conditions on liquid instruments, and it is volume-free and self-scaling, so it can be studied on any liquid FX pair, metal, index, or crypto CFD. This article is a strategy analysis, not a profit opportunity; the goal is to understand why the rules are shaped the way they are.

How It Works

The Spread Regime Breakout evaluates its rules once per completed bar (it never acts on the still-forming bar, so signals do not repaint). When a bar closes, the strategy runs through the following logic.

Entry conditions:

Exit conditions, stop-loss, and take-profit:

Because both the stop and target are anchored to ATR, the strategy is self-scaling: it adapts its risk distances to whatever instrument and timeframe you attach it to.

spread regime breakout MT5 EA
Illustrative example of the strategy’s entry and exit logic — not real trading results.

Strategy Parameters

Parameter Default Min Max Description
ChannelPeriod 20 10 60 Donchian channel length whose high/low edge the signal bar must decisively close beyond.
SpreadWindow 5 2 20 Short window — the recent effective-spread reading representing current liquidity.
RegimeLookback 50 20 150 Long window — the baseline effective spread the recent reading is judged against.
SpreadRatioMax 1.00 0.50 1.50 Gate threshold: recent spread must be ≤ this fraction of the baseline to allow a trade.
AtrPeriod 14 7 28 Averaging period for the ATR used in stop, target, and breakeven distances.
SlAtrMult 1.50 0.50 4.00 Stop-loss distance expressed as a multiple of ATR.
TpAtrMult 3.00 1.00 6.00 Take-profit distance expressed as a multiple of ATR.
BreakevenAtr 1.00 0.00 3.00 Move the stop to entry once price runs this many ATRs in favour (0 disables it).
Lots 0.10 0.01 1.00 Fixed trade size in lots.

Lowering SpreadRatioMax makes the liquidity gate stricter (fewer, more selective trades); raising it loosens the filter. Adjusting ChannelPeriod changes how significant a breakout must be, and the ATR multipliers reshape the risk-reward profile.

spread regime breakout MT5 EA — MQL5 source code

Recommended Chart Settings

The Spread Regime Breakout is built for a single timeframe — it operates entirely on the chart timeframe you attach it to. Its clean breakout/momentum character historically suits the M30 to H4 range on liquid instruments such as EURUSD, XAUUSD (gold), or a major stock index CFD.

Higher timeframes tend to produce fewer, more deliberate breakouts and cleaner spread estimates, while lower timeframes generate more signals but are noisier and more sensitive to trading costs. Because the logic is volume-free and self-scaling, you can experiment across instruments — but remember that results will vary substantially across different symbols and market conditions. Always test any configuration on your own broker's data before drawing conclusions, since spreads, tick data, and liquidity differ from one broker to another.

How to Install on MetaTrader 5

What to Consider Before Using This EA

Like any mechanical system, the Spread Regime Breakout has strengths and clear limitations worth understanding before you rely on it.

Strengths:

Limitations and weaker conditions:

This is a tool for study and disciplined testing, not a set-and-forget solution. Treat every parameter as a hypothesis to be examined, not a guarantee.

Risk Management Tips

Sound risk management matters far more than any single entry rule. Whatever strategy you study, keep these general principles in mind:

Risk Warning

Trading foreign exchange, CFDs, and other leveraged financial instruments involves substantial risk of loss and is not suitable for all investors. The strategies and tools discussed on this page are provided for educational purposes only and do not constitute financial advice, investment recommendations, or solicitation to trade. Always consult a qualified financial adviser before making trading decisions. Past backtest performance is not indicative of future results.

Downloads

← Back to Blog