Gold M5 Volatility Adaptive Momentum Scalper
- Experts
- Suppavej Permpimol
- Version: 1.1
- Activations: 5
Gold M5 Volatility Adaptive Momentum Scalper — Adaptive Forex & Gold Scalping Expert Advisor for MT5
Gold M5 Volatility Adaptive Momentum Scalper is a fully automated Expert Advisor that dynamically adjusts its stop-loss, take-profit, and position sizing in real time based on market volatility and spread conditions. It is optimised for XAUUSD (Gold) on the M5 (5-minute) timeframe.
Unlike static scalpers, this EA reads ATR (Average True Range) on every bar and adapts its parameters accordingly — widening protection during volatile sessions and tightening it in calmer markets, keeping your dollar risk per trade consistent regardless of conditions.
Key Features
1. ATR-Adaptive Stop-Loss & Take-Profit The EA measures current market volatility using ATR. When volatility is high, SL and TP distances are automatically widened to avoid noise stop-outs. When volatility is low, they tighten for more efficient scalping. Minimum SL/TP floors ensure there is always a safety net in place.
2. EMA Crossover Entry Signal Entry signals are generated by a fast/slow Exponential Moving Average crossover. A bullish crossover triggers a buy; a bearish crossover triggers a sell. Periods are fully configurable.
3. RSI Momentum Filter The RSI filter blocks buy entries when the market is overbought and sell entries when it is oversold, reducing low-quality entries that chase exhausted price moves.
4. Spread & Liquidity Filter Before every trade, the EA checks the live spread. If it exceeds your configured maximum (in points), the trade is skipped. This protects you during news events, market opens, and low-liquidity periods.
5. Equity-Based Auto Lot Sizing When enabled, lot size is calculated automatically based on your account equity and a risk percentage you define. Your monetary risk per trade scales with your balance — no manual lot recalculation needed.
6. ATR Lot Scaling In addition to equity-based sizing, position size is further reduced inversely to ATR. High volatility = smaller positions, keeping overall exposure stable.
7. Overtrading Protection A minimum time interval between trades prevents rapid re-entry after whipsaws. A maximum open trades cap limits total simultaneous exposure.
8. Session Time Filter (Optional) You can restrict the EA to trade only within specific server-time hours, keeping it dormant during low-quality market sessions.
9. Broker Safety Checks All orders are validated against the broker's minimum stop level before placement, preventing rejected orders due to stop violations.
Recommended Setup
- Symbol: XAUUSD (Gold) — also compatible with EURUSD, GBPUSD, USDJPY
- Timeframe: M5 (5-Minute)
- Minimum Balance: $500 – $1,000
- Leverage: 1:100 to 1:500
- Account Type: Account with low spreads or spread-free
VPS Strongly Recommended
This EA trades the 5-minute chart 24 hours a day during market hours. Running it on a home PC risks missed signals and unmonitored open positions due to internet drops, PC restarts, or power cuts. A Virtual Private Server (VPS) located close to your broker's server (ideally under 20ms ping) ensures the EA runs continuously with fast order execution. This is strongly recommended for consistent live performance.
⚠ Risk Warning — Important
This EA will experience drawdowns. The backtest recorded a maximum equity drawdown of 27.12%. Before going live, you must configure the risk settings to match your personal risk tolerance:
- Set RiskPercent to control how much of your equity is risked per trade
- Set MaxLotSize to cap your position size regardless of calculations
- Set MaxSpreadPoints appropriate for your broker's typical Gold spread
- Always test on a demo account first before deploying on a live account
- Past backtest results do not guarantee future live performance
- Only trade with capital you can afford to lose
You are solely responsible for your own risk management settings. The developer is not liable for any trading losses.
Input Parameters
Position Sizing
- LotSize — Base lot size used when auto lot is disabled
- UseAutoLot — Enable/disable equity-based automatic lot sizing
- RiskPercent — Percentage of account equity risked per trade (recommended: 1–2%)
- MaxLotSize — Hard cap on maximum lot size regardless of calculation
Stop Loss & Take Profit
- BaseStopLoss — Base stop-loss distance in points
- BaseTakeProfit — Base take-profit distance in points
- MinStopLoss — Minimum SL floor in points (safety limit)
- MinTakeProfit — Minimum TP floor in points (safety limit)
Volatility Adaptation (ATR)
- ATR_Period — ATR indicator period
- ATR_SL_Coeff — ATR multiplier applied to stop-loss expansion
- ATR_TP_Coeff — ATR multiplier applied to take-profit expansion
- ATR_Lot_Coeff — Position size reduction factor under high volatility
Entry Signal (EMA)
- FastEMA_Period — Fast EMA period
- SlowEMA_Period — Slow EMA period
Momentum Filter (RSI)
- RSI_Period — RSI calculation period
- RSI_OverboughtLevel — RSI level above which buy entries are blocked
- RSI_OversoldLevel — RSI level below which sell entries are blocked
Spread Filter
- MaxSpreadPoints — Maximum allowed spread in points; trades skipped if exceeded
Overtrading Protection
- MinTradeInterval — Minimum seconds between new trade entries
- MaxOpenTrades — Maximum number of simultaneously open positions
Order Management
- MagicNumber — Unique EA identifier to separate its orders from manual trades
- TradeComment — Comment label attached to all orders placed by this EA
Session Filter
- UseSessionFilter — Enable/disable the trading session time restriction
- SessionStartHour — Hour to begin trading (broker server time)
- SessionEndHour — Hour to stop trading (broker server time)
