GoldExtremeSniper
- Experts
- Version: 7.30
🥇 Gold Extreme Sniper M5 — Institutional Pullback Trading System for XAUUSD
A fully automated, rule-based Expert Advisor designed specifically for Gold (XAUUSD) on the M5 timeframe. It identifies high-probability swing zones, confirms multi-timeframe trend alignment, and enters on pullbacks using pending limit orders — then manages every trade automatically with staged profit-taking and trailing stops.
Built for traders who want strict risk control, zero emotional interference, and one clean trade at a time.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔑 KEY FEATURES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ ONE TRADE LOCK — Maximum 1 open position or pending order at any time. No over-exposure, ever.
✅ MULTI-TIMEFRAME TREND FILTER — Confirms direction using a selectable trend timeframe (M5, M15, or H1) with a 200-period EMA. Only trades WITH the higher timeframe trend.
✅ ADX + DI TREND STRENGTH — Requires ADX above threshold AND directional indicator (+DI/-DI) alignment. Filters out choppy, ranging markets automatically.
✅ RSI MOMENTUM FILTER — Blocks entries when RSI is overbought (>65 for buys) or oversold (<35 for sells). Prevents chasing exhausted moves.
✅ SWING ZONE DETECTION — Scans the last 50 M5 bars for statistically significant swing highs (supply) and swing lows (demand) using configurable strength and body-ratio validation.
✅ PENDING LIMIT ORDERS — Places Buy Limit at demand swings and Sell Limit at supply swings. Enters at the best possible price with zero slippage.
✅ AUTO-EXPIRING ORDERS — Pending orders automatically cancel after a configurable number of hours (default: 4). No stale entries in dead zones.
✅ DYNAMIC ATR-BASED STOPS — Stop Loss and Take Profit calculated from real-time Average True Range. Minimum $6 SL floor protects against Gold's notorious wicks.
✅ STAGED PARTIAL CLOSES — Automatically closes 50% of the position at the halfway point to TP, locking in profit while letting the runner breathe.
✅ SPREAD-AWARE TRAILING STOP — Moves SL to break-even (plus spread buffer) once price reaches 1.2× ATR in profit, then trails behind price. Never gives back a winning trade.
✅ TIME ZONE SWITCH — Built-in TZ offset button converts server time to New York time. News filter blocks trading during US economic data releases (default: 13:00–15:00 NY). Click the TZ button until the dashboard NY clock matches real New York time.
✅ DIRECTION CONTROL — Live-switchable button: AUTO (both directions), BUY ONLY, or SELL ONLY. Adapt to market conditions without recompiling.
✅ DAILY LOSS LIMIT — Shuts down automatically if equity drops 2% from the daily starting balance. Protects your account from bad days.
✅ CIRCUIT BREAKER — Pauses trading after 3 consecutive losses. Auto-resets after 2 hours or on the next winning trade.
✅ WEEKEND PROTECTION — Optionally blocks Friday evening and weekend trading to avoid gap risk.
✅ LIVE DASHBOARD — Real-time display of ADX, trend direction, RSI, pending/open counts, balance, equity, daily P/L, win rate, profit factor, spread, circuit breaker status, and dual clocks (Server + New York).
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 RECOMMENDED SETTINGS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• Symbol: XAUUSD (Gold)
• Timeframe: M5
• Account Type: ECN / Raw Spread recommended
• Minimum Deposit: $100
• Lot Size: 0.01 (start small, scale after proving consistency)
• Max Trades: 1 (do not increase on accounts under $1,000)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ INPUT PARAMETERS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
— Risk Management —
• Lot Size (default: 0.01) — Fixed lot size per trade
• Use Risk Percent (default: false) — Enable dynamic lot sizing based on % risk
• Risk Percent (default: 1.0) — Percentage of equity to risk per trade
• Max Lot Size (default: 0.2) — Hard cap on lot size
• ATR SL Multiplier (default: 2.5) — Stop Loss = ATR × this value
• ATR TP Multiplier (default: 3.0) — Take Profit = ATR × this value
• Min SL Price (default: 6.0) — Stop Loss never tighter than $6
• Min TP Price (default: 12.0) — Take Profit never less than $12
• Max Spread (default: 60) — Block trades if spread exceeds this (points)
• Max Daily Loss % (default: 2.0) — Shut down if daily loss reaches this %
— Direction & Trend Control —
• Trade Direction (default: 0=AUTO) — 0=AUTO, 1=BUY ONLY, 2=SELL ONLY
• Trend Timeframe (default: H1) — Timeframe for trend confirmation (M5/M15/H1)
— Trend Filters —
• Use ADX Filter (default: true) — Require ADX trend strength confirmation
• ADX Period (default: 14)
• ADX Minimum (default: 22) — Minimum ADX value to allow trades
• Use Trend EMA (default: true) — Require price above/below EMA for direction
• EMA Period (default: 200)
• Use RSI (default: true) — Require RSI momentum confirmation
• RSI Period (default: 14)
— Swing Zone Detection —
• Swing Strength (default: 5) — Bars required on each side to confirm a swing
• Max Zone Age (default: 50) — Only consider swings within last N bars
• Min Body Ratio (default: 0.4) — Swing candle body must be ≥40% of range
• Order Expire Hours (default: 4) — Cancel unfilled pending orders after N hours
— Trade Management —
• Use Partials (default: true) — Close 50% at halfway to TP
• Use Trailing Stop (default: true) — Trail SL behind price after profit threshold
• Max Trades (default: 1) — Maximum simultaneous positions + pending orders
— Session & Time Zone —
• Avoid Weekend (default: true) — Block Friday evening/weekend trading
• Avoid News Window (default: true) — Block trading during news hours
• News Start Hour NY (default: 13) — News block start (New York time)
• News End Hour NY (default: 15) — News block end (New York time)
• Server to NY Offset (default: 7) — Hours between server time and NY time (adjust with TZ button)
— Circuit Breaker —
• Max Consecutive Losses (default: 3) — Pause after N losses in a row
• Reset On Win (default: true) — Reset loss counter on next winning trade
— Dashboard —
• Show Dashboard (default: true)
• Panel Color (default: Black)
• Border Color (default: Gold)
• Text Color (default: White)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ IMPORTANT NOTES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• This EA uses pending limit orders. Ensure your broker allows pending orders and has reasonable stop levels.
• Recommended for ECN/Raw Spread accounts. Standard accounts with wide spreads may trigger the spread filter frequently.
• Always test on a demo account before live deployment.
• Past performance does not guarantee future results. Trade at your own risk.
• The EA includes a built-in circuit breaker and daily loss limit as safety mechanisms. Do not disable these on live accounts.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📩 SUPPORT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
For setup assistance, bug reports, or feature requests, please use the Comments tab below or contact via MQL5 messages. I respond within 24 hours.
