Price Action Breakout Bot
Expert Advisor for MetaTrader 5 that marks key levels and trades a strong close through one of them in the direction of the higher-timeframe trend.
- Net return
- +61.8%
- Profit factor
- 1.28
- Max drawdown
- 17.2%
- Trades
- 273
Backtest on XAUUSD M15 over 82 months, from $500 at 0.5% risk per trade and a 30% drawdown limit. Past results do not promise future returns.
Recommended MT5 setup
Best: USDJPY · M30Trades decisive candle closes through multi-touch zones when volatility is expanding cleanly.
- Primary chart
- USDJPY M30
- Secondary pair
- XAUUSD M15
- Suggested risk
- 0.5%–1.0%
- 7-year winning months
- 48W / 33L
Optimized v1.4.0 defaults built into this EA
Session GMT06–17 (skip 07)MaxAtrRatio1.8BreakoutBodyAtr0.6StopMultiplier2.5MonthProfitLock0.25% (keep 60%)USDJPY M30 (BiasTimeframe=D1 lifts PF to 1.56; both halves positive). Secondary pair verified on XAUUSD M15 (+61.8%, PF 1.28, 58W/22L at $500 @ 0.5% (DD 9.0% at $10k@1%)).
What it does
7 capabilities- Trading hours filter in GMT with automatic DST offset refresh, rollover pause, Friday cutoff and MT5 Economic Calendar news blackout
- Higher-timeframe bias filter (EMA fast/slow) with efficiency-ratio regime gating
- Key level marking from swing points, drawn on the chart
- Breakout on a strong close through a key zone or an inside bar breakout
- Cost-adjusted break-even, partial take-profit, and rolling spread-spike guard
- Account-currency OrderCalcProfit risk sizing, margin cap, monthly loss budget, profit lock and drawdown throttle
- Pre-flight OrderCheck, freeze-level protection and execution circuit breaker
How it works
The bot reads the higher-timeframe bias with two EMAs, marks the key support and resistance zones of the chart from its swing points, and waits for price to reach a zone and close through it. A breakout counts when the bar before closed on the near side of the zone and the breakout bar closes beyond it with a strong body, or as an inside bar breakout. It trades only with the bias, places the stop beyond the far side of the zone and the target at a fixed reward to risk, and sizes the position by the risk you choose. The zones and the step the bot is at are shown on the chart. The strategy runs in the bot's DLL and works only with an approved FXOpsPro license key.
Parameters & options
Configured directly in MetaTrader 5 Expert Advisor inputs.
| Parameter | Type | Default | Description |
|---|---|---|---|
MinLotRiskPercent | number | 2.5 | When the account is too small for RiskPercent, trade the smallest lot if it loses at most this % of the balance at the stop (2.5 for this bot) |
MaxMarginPercent | number | 18.0 | Account protection: one trade uses at most this % of the free margin; the lot size is reduced to fit (18 for this bot) |
MaxMonthlyLossPercent | number | 10.0 | The bot loses at most this % of the month's starting balance in a calendar month: new trades are sized to the loss that is left, then none until the next month (10.0 for this bot; 0: off) |
MonthProfitLockPercent | number | 0.25 | Month profit lock: after the month's closed result reaches this % of the month's starting balance, new trades are sized to keep MonthProfitKeepPercent of its best closed result (0.25 for this bot; 0: off) |
MonthProfitKeepPercent | number | 60.0 | Share of the month's best closed result that the month profit lock keeps, in % (60 for this bot; 0: break-even) |
DrawdownThrottlePercent | number | 5.0 | Multiply RiskPercent by DrawdownThrottleFactor while account equity is this % or more below its peak (5.0 for this bot; 0: off) |
UseSessionFilter | bool | true | Trading hours: open trades only from SessionStartGmt to SessionEndGmt (on for this bot) |
SessionStartGmt | int | 6 | Trading hours: window start, hour in GMT (6 for this bot: London pre-open) |
SessionEndGmt | int | 17 | Trading hours: window end, hour in GMT (17 for this bot: stops before late NY fade) |
SkipHours | int | 7 | Trading hours: no new trades in these hours in GMT (0-23), numbers with commas (7 for this bot: skips 07:00 GMT London-open whipsaw; empty: trade all hours) |
MaxAtrRatio | number | 1.8 | Volatility regime filter: skip entries when current ATR exceeds this multiple of its 100-bar baseline ATR (1.8 for this bot: blocks panic volatility spikes; 0: off) |
StopMultiplier | number | 2.5 | The stop loss is this many times as far from the entry as the level stop; the lot size is smaller, so the money at risk stays RiskPercent (2.5 for this bot) |
RiskReward | number | 2.0 | Take profit at this many times the stop distance (2.0 for this bot) |
BreakoutBodyAtr | number | 0.6 | The breakout bar body must be at least this many ATRs |
More trading bots



