Regime Breakout is an MQL5 Expert Advisor for MetaTrader 5, version 1.01. It is an M1 momentum-candle breakout EA written for XAUUSD and BTCUSD.
It looks for a strong closed candle that breaks a recent high or low, in line with the higher-timeframe EMA direction. It is written to run alongside other Regime Labs EAs rather than to share their range-fading logic. Lot size is a fixed 0.01 by default; a risk-percent of equity can be used instead when that input is set above zero.
Nothing on this page is a performance claim. No Expert Advisor can guarantee profit. Test on a demo account before using live funds.
How it decides
On each newly closed M1 bar, the EA measures ATR from before that bar. A candidate candle must have a body of at least 1.5 ATR by default, and the body must be most of the candle’s range (default 60%), so the close is strong and the wicks are relatively small. Tick volume must be at least 1.5 times its recent average (this check can be turned off). The close must break the high or low of the previous 10 bars by default.
A higher-timeframe filter (M15 fast and slow EMAs by default) can be off, can block trades against the HTF direction while allowing trades when the HTF is flat, or can require alignment with the HTF. The default is to block counter-trend trades and allow trades when the HTF is flat.
Exits include an ATR stop (broker-side by default, or a virtual stop the EA manages), an optional ATR take-profit (off by default, so the trail can work alone), an ATR move to breakeven, a dollar profit lock, an ATR trail, a no-progress exit if the trade has not moved far enough after a set number of bars, and an optional close when an opposite momentum bar fires.
Risk controls
- A chase filter that skips the entry if price has already run too far past the signal close, and a maximum spread in ATR.
- A cooldown of several bars between entries, and a maximum of two open trades for this EA. A second trade is allowed only when the first already has its stop at or beyond entry (on by default).
- An optional cap on the total number of trades on the symbol from all EAs (off by default).
- A daily loss cap on closed and open P/L, on by default at 3% of balance (set to 0 to turn it off). An optional session window is off by default.
Recommended use
| Platform | MetaTrader 5 |
|---|---|
| Version | 1.01 |
| Symbols | XAUUSD (gold) and BTCUSD |
| Timeframe | M1 |
| Account type | Raw-spread or ECN (low-spread) account recommended |
| First use | Attach the EA on a demo account and confirm your inputs before any live use |
Key settings
| InpMagic | 7770020 |
|---|---|
| InpLots / InpRiskPct | 0.01 / 0 (fixed lot unless risk percent is set above 0) |
| InpMaxPositions | 2 |
| InpBodyATR / InpBodyRatio | 1.5 / 0.60 |
| InpBreakoutBars | 10 (0 = off) |
| InpHTFMode / InpHTF | Block trades against HTF (flat allowed) / M15 |
| InpSLATR / InpTPATR | 1.5 / 0 (no fixed take-profit; trailing only) |
| InpDailyLossPct | 3.0% of balance (closed + open P/L; 0 = off) |
Requirements
- A MetaTrader 5 terminal and a broker account you control.
- A raw-spread or ECN (low-spread) account is recommended.
- You remain responsible for inputs, risk limits, and supervision while the EA is running.
Trading leveraged products is high risk. This is not financial advice. Past performance is not indicative of future results. Read the risk disclaimer.