Price Action Reversal Bot
Expert Advisor for MetaTrader 5 that waits for a strong move into a well-tested key level and trades the reversal after a pin bar, engulfing candle or inside bar.
- Net return
- +175.8%
- Profit factor
- 2.31
- Max drawdown
- 24.8%
- Trades
- 85
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: XAUUSD · M15Selective fade of over-extended approaches into 3+ touch structural levels with tight spread gates and a built-in ER10 chop filter.
- Primary chart
- XAUUSD M15
- Secondary pair
- USDJPY H1
- Suggested risk
- 0.5%–1.0%
- 7-year winning months
- 36W / 21L
Optimized v1.4.0 defaults built into this EA
BiasTimeframeD1MinTrendEfficiency0.12 (10 bars)MaxEmaDistanceAtr2.0StopMultiplier4.0MinStopSpreads25XAUUSD M15 · $500@0.5% (+175.8%, PF 2.31) · $10k@1% (DD 9.0%, PF 2.02). Secondary pair verified on USDJPY H1 (PF 1.53, DD 3.6% (also EURUSD M15 portfolio slot)).
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
- Strong key levels only (minimum swing touches) with fast-approach ATR validation
- Pin bar, engulfing candle and inside bar confirmation; blocks reversals against higher-timeframe bias
- Optional upper efficiency-ratio gate (MaxTrendEfficiency) for range-only mean reversion
- 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 marks the key support and resistance zones of the chart from its swing points and keeps only strong ones, tested several times. It waits for price to reach such a zone after a fast move towards it, then seeks a confirmation in the opposite direction: a pin bar, an engulfing candle or an inside bar breakout. The higher-timeframe bias must not point against the reversal. The stop goes beyond the zone and the pattern, the target at a fixed reward to risk, and the position is sized 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 |
|---|---|---|---|
MinStopSpreads | number | 25.0 | Skip a signal when the stop loss is closer to the entry than this many spreads (25 for this bot; 0: off) |
MaxMarginPercent | number | 14.0 | Account protection: one trade uses at most this % of the free margin; the lot size is reduced to fit (14 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) |
StopMultiplier | number | 4.0 | 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 (4 for this bot) |
BiasTimeframe | text | D1 | Timeframe of the bias (D1 for this bot; current: automatic, one step above the chart) |
MinTrendEfficiency | number | 0.12 | Skip new trades when the bias timeframe trend is choppy: efficiency ratio below this (0.12 for this bot; 0: off) |
TrendEfficiencyBars | int | 10 | Bars of the bias timeframe for MinTrendEfficiency and MaxTrendEfficiency (10 for this bot; 2-150) |
MaxEmaDistanceAtr | number | 2.0 | Anti-chase filter: skip a signal when price is already extended more than this many ATRs beyond the fast EMA in the trade direction (2.0 for this bot; 0: off) |
RiskReward | number | 2.0 | Take profit at this many times the stop distance (2.0 for this bot) |
StrongTouches | int | 3 | Swing points a zone needs to count as a strong level |
ApproachBars | int | 10 | Bars in which the move into the level must happen |
ApproachAtr | number | 1.5 | The move into the level must come from at least this many ATRs away |
More trading bots



