Gold Extreme Reversal for XAUUSD
Description:
Gold Extreme Reversal is an Expert Advisor designed specifically for XAUUSD on the M5 timeframe. It identifies extreme
market conditions — deep oversold or overbought — and waits for confirmed reversals before entering.
How it works:
- Phase 1: Detects extreme price deviation from MA60 with strong ADX and DI spread
- Phase 2: Confirms DI convergence (exhaustion of the dominant trend)
- Phase 3: Validates entry with MA10 cross + reversal candlestick patterns (hammer, engulfing, shooting star)
Risk Management:
- ATR-based dynamic Stop Loss and Take Profit
- Trailing stop with configurable activation threshold
- Break-even protection (move SL to entry after profit)
- Circuit breaker: auto-cooldown after consecutive losses
Recommended settings:
- Symbol: XAUUSD
- Timeframe: M5
- Minimum deposit: $100
- Lot size: 0.01
Input Parameters:
┌────────────────────┬──────────┬─────────────────────────────────┐
│ Parameter │ Default │ Description │
├────────────────────┼──────────┼─────────────────────────────────┤
│ InpLotSize │ 0.01 │ Lot size │
├────────────────────┼──────────┼─────────────────────────────────┤
│ InpMagicNumber │ 20260501 │ Unique magic number │
├────────────────────┼──────────┼─────────────────────────────────┤
│ InpSlippage │ 30 │ Max slippage in points │
├────────────────────┼──────────┼─────────────────────────────────┤
│ InpADX_Period │ 14 │ ADX period │
├────────────────────┼──────────┼─────────────────────────────────┤
│ InpMinADX │ 25.0 │ Minimum ADX value │
├────────────────────┼──────────┼─────────────────────────────────┤
│ InpLongMA60Dist │ 2.0 │ Long entry MA60 distance (ATR) │
├────────────────────┼──────────┼─────────────────────────────────┤
│ InpShortMA60Dist │ 3.0 │ Short entry MA60 distance (ATR) │
├────────────────────┼──────────┼─────────────────────────────────┤
│ InpDI_Diff │ 15.0 │ Minimum DI spread │
├────────────────────┼──────────┼─────────────────────────────────┤
│ InpDI_ConvergeBars │ 3 │ DI convergence bars required │
├────────────────────┼──────────┼─────────────────────────────────┤
│ InpSwingLookback │ 5 │ Swing high/low lookback │
├────────────────────┼──────────┼─────────────────────────────────┤
│ InpSL_ATR │ 1.5 │ Stop Loss multiplier │
├────────────────────┼──────────┼─────────────────────────────────┤
│ InpTP_ATR │ 2.5 │ Take Profit multiplier │
├────────────────────┼──────────┼─────────────────────────────────┤
│ InpTrailStartATR │ 1.0 │ Trailing start threshold │
├────────────────────┼──────────┼─────────────────────────────────┤
│ InpTrailDistATR │ 1.0 │ Trailing distance │
├────────────────────┼──────────┼─────────────────────────────────┤
│ InpMaxConsecLoss │ 3 │ Max consecutive losses │
├────────────────────┼──────────┼─────────────────────────────────┤
│ InpCooldownMin │ 360 │ Cooldown minutes │
└────────────────────┴──────────┴─────────────────────────────────┘
