Documentation
Strategy Guide
Complete reference for the Gold Signal Pro Expert Advisor — indicator logic, parameter settings, backtesting methodology, and step-by-step installation instructions.
Overview
Gold Signal Pro is a fully automated MetaTrader 4 Expert Advisor designed exclusively for XAUUSD (spot gold). It combines three independent technical conditions into a single confluence-based entry model, producing high-probability trade setups across three trading modes: Scalping (M1/M5), Day Trading (M15/M30/H1), and Swing Trading (H4/D1).
The EA does not use martingale, grid, or averaging strategies. Each trade is a single position with a fixed ATR-derived stop-loss and take-profit. Risk per trade is controlled by the RiskPercent parameter, and all mode-specific parameters are applied automatically when you select a trading mode.
Key characteristics
| Property | Value |
|---|---|
| Instrument | XAUUSD only |
| Trading modes | Scalping (M1/M5) · Day Trading (M15/M30/H1) · Swing (H4/D1) |
| Strategy type | Trend-following confluence |
| Order type | Single position per signal |
| SL / TP method | ATR-based dynamic sizing (mode-adjusted) |
| Session | London / NY (configurable; disabled in Swing mode) |
| Backtested period | Jan 2022 – Sep 2026 |
| Platform | MetaTrader 4 (.ex4) |
Built-in Trading Assistant
Gold Signal Pro v2.1 includes a fully integrated Trading Assistant panel drawn directly on the MT4 chart. No separate installation or web portal is required — the panel appears automatically when the EA is attached.
Execution modes
| Mode | ExecMode value | Behaviour |
|---|---|---|
| Semi-Automatic | 0 (default) | EA generates signals and draws them on the chart. Trader clicks TAKE TRADE or SKIP on the panel. No order is placed without confirmation. |
| Fully Automatic | 1 | EA places orders immediately when confluence conditions are met. No manual confirmation required. Suitable for VPS / unattended operation. |
Chart panel layout
The panel is drawn in the top-left corner of the chart (position configurable via PanelX / PanelY inputs). It contains five sections:
| Section | Contents |
|---|---|
| Header | EA name, version, trading mode badge |
| Execution mode | Shows SEMI-AUTO or FULL AUTO; change via ExecMode input |
| Confluence | Live readings for Trend (EMA 200), EMA Cross, RSI, Volume ratio, ATR — colour-coded bull/bear/neutral |
| Signal | Direction (BUY/SELL), Entry price, Stop-loss, Take-profit, Lot size — updates on each new signal |
| Account strip | Live account balance and equity |
Chart lines
When a signal is generated, three horizontal lines are drawn on the chart:
| Line | Colour | Style |
|---|---|---|
| Entry | Gold | Solid, 2px |
| Stop-loss | Red | Dashed, 1px |
| Take-profit | Green | Dashed, 1px |
Lines are removed automatically when the trader clicks SKIP, or when the trade is closed. In Full Auto mode, lines are drawn briefly and removed after order placement.
Semi-Auto workflow
1. EA evaluates confluence on each new bar close.
2. When conditions are met, the signal appears on the panel and lines are drawn on the chart.
3. Trader reviews the signal — entry, SL, TP, lot size, and all confluence readings.
4. Click TAKE TRADE to place the order at market, or SKIP to dismiss.
5. The pending signal is held until the trader decides — it is not auto-cancelled on the next bar.
Trading Modes
Gold Signal Pro v2.0 introduces three distinct trading modes, each calibrated for a specific trading style and timeframe. Select the mode via the TradingMode input parameter when attaching the EA. The EA validates the chart timeframe on startup and will alert you if the wrong timeframe is used for the selected mode.
Mode 0 — Scalping (M1 / M5)
Designed for high-frequency, short-duration trades during peak liquidity windows. Requires all three confluence conditions (stricter than other modes). Uses a tighter ATR stop-loss multiplier (1.0×) and smaller take-profit target (1.5×) to capture quick intraday moves. Session filter is always active. Recommended risk: 0.5% per trade.
| Parameter | Scalping value | Notes |
|---|---|---|
| Timeframes | M1, M5 | EA validates on startup |
| ATR SL multiplier | 1.0× | Tight stop to limit exposure |
| ATR TP multiplier | 1.5× | Quick profit target |
| Trailing start | 30 pts | Lock in profits early |
| Trailing step | 10 pts | Fine-grained trailing |
| Break-even at | 20 pts | Move to BE quickly |
| RSI period | 7 | Faster RSI for short timeframes |
| Volume threshold | 1.5× | Higher bar to filter noise |
| Session filter | Always on | London/NY only |
| Min confluence | 3/3 | All conditions required |
| Recommended risk | 0.5% | Lower risk due to higher frequency |
Mode 1 — Day Trading (M15 / M30 / H1)
The default and most thoroughly backtested mode. Balanced parameters suitable for traders who monitor positions intraday and close before the end of the session. Requires at least 2 of 3 confluence conditions. Session filter is configurable. Recommended risk: 1.0% per trade.
| Parameter | Day Trading value | Notes |
|---|---|---|
| Timeframes | M15, M30, H1 | EA validates on startup |
| ATR SL multiplier | 1.5× | Standard stop distance |
| ATR TP multiplier | 3.0× | 1:2 risk/reward baseline |
| Trailing start | 100 pts | Trail after meaningful move |
| Trailing step | 20 pts | Standard trailing step |
| Break-even at | 80 pts | Standard BE level |
| RSI period | 14 | Standard RSI |
| Volume threshold | 1.2× | Standard volume filter |
| Session filter | Configurable | Uses UseSessionFilter input |
| Min confluence | 2/3 | Two conditions required |
| Recommended risk | 1.0% | Standard risk per trade |
Mode 2 — Swing Trading (H4 / D1)
Designed for multi-day position trades. Uses wider ATR multipliers to accommodate larger price swings and avoid premature stop-outs. Session filter is disabled — swing trades are held across sessions. Volume threshold is relaxed as tick volume is naturally lower on higher timeframes. Recommended risk: 1.5% per trade.
| Parameter | Swing value | Notes |
|---|---|---|
| Timeframes | H4, D1 | EA validates on startup |
| ATR SL multiplier | 2.0× | Wide stop to avoid noise |
| ATR TP multiplier | 4.0× | Large target for multi-day moves |
| Trailing start | 300 pts | Only trail after significant move |
| Trailing step | 80 pts | Wide trailing step |
| Break-even at | 200 pts | BE after meaningful profit |
| RSI period | 21 | Slower RSI for swing context |
| Volume threshold | 1.0× | Relaxed — lower tick vol on H4/D1 |
| Session filter | Off | Swing trades held across sessions |
| Min confluence | 2/3 | Two conditions required |
| Recommended risk | 1.5% | Fewer trades, higher per-trade risk |
Preset .set files
Three pre-configured .set files are included in the download package. Load the appropriate preset via the EA's Load button in the Inputs tab to apply all mode-specific parameters in one step.
| File | Mode | Chart |
|---|---|---|
| GoldSignalPro_Scalping.set | Scalping | M1 or M5 |
| GoldSignalPro_DayTrading.set | Day Trading | M15, M30 or H1 |
| GoldSignalPro_Swing.set | Swing Trading | H4 or D1 |
Indicator Logic
Each of the five confluence conditions is evaluated independently on every new M15 bar close. The EA does not repaint — all calculations are performed on confirmed closed bars.
1. EMA Cross (Trend Direction)
A 21-period EMA and 50-period EMA are applied to the M15 chart. A BUY condition is confirmed when EMA 21 is above EMA 50 and the gap between them is widening. A SELL condition is confirmed when EMA 21 is below EMA 50 and the gap is widening. A narrowing gap (potential cross) disqualifies the condition.
2. RSI Momentum (14-period)
RSI is evaluated on the M15 chart. For BUY signals, RSI must be between 40 and 65 — confirming positive momentum without being overbought. For SELL signals, RSI must be between 35 and 60. Extreme readings (above 70 or below 30) disqualify the condition to avoid chasing exhausted moves.
3. ATR Volatility Filter (14-period)
The 14-period ATR on M15 must exceed a minimum threshold (default: 1.5 points) to confirm sufficient volatility for a viable trade. In low-volatility environments (Asian session consolidation, pre-news compression), the ATR filter prevents entries with unfavourable risk/reward ratios.
4. Volume Filter
A custom volume indicator (.ex4) compares the current bar's tick volume against a 20-bar moving average. Volume must be at least 1.2× the average to confirm liquidity. This filter is the most frequently unconfirmed condition and is responsible for the majority of 4/5 confluence signals.
5. Session Filter
By default, the EA only trades during the London/New York overlap: 12:00–17:00 UTC. This window captures the highest liquidity period for XAUUSD and avoids the low-volume Asian session. The session window is fully configurable.
Entry & Exit Rules
Entry conditions
An order is placed at the open of the next M15 bar after all required confluence conditions are met on the current bar close. The EA does not use pending orders — all entries are market orders executed at the next bar open price.
| Condition | BUY | SELL |
|---|---|---|
| EMA Cross | EMA 21 > EMA 50, gap widening | EMA 21 < EMA 50, gap widening |
| RSI | 40 – 65 | 35 – 60 |
| ATR | > MinATR threshold | > MinATR threshold |
| Volume | > 1.2× 20-bar average | > 1.2× 20-bar average |
| Session | Within configured window | Within configured window |
Stop-loss calculation
Stop-loss is placed at ATR × SLMultiplier (default: 1.0) from the entry price, measured in the direction opposite to the trade. For a BUY at 2341.50 with ATR = 13.50 and SLMultiplier = 1.0, the stop-loss is placed at 2341.50 − 13.50 = 2328.00.
SL (BUY) = EntryPrice - (ATR × SLMultiplier)
SL (SELL) = EntryPrice + (ATR × SLMultiplier)
TP (BUY) = EntryPrice + (ATR × SLMultiplier × RRRatio)
TP (SELL) = EntryPrice - (ATR × SLMultiplier × RRRatio)Take-profit calculation
Take-profit is derived from the stop-loss distance multiplied by the RRRatio parameter (default: 2.0). This produces a fixed 1:2 risk/reward on every trade. The RRRatio can be adjusted between 1.5 and 3.0 without affecting signal quality.
Position sizing
Lot size is calculated automatically from the RiskPercent parameter. The EA computes the pip value of the stop-loss distance and sizes the position so that a full stop-loss hit equals exactly RiskPercent of the account balance.
LotSize = (AccountBalance × RiskPercent / 100) / (SL_pips × PipValue)Settings Reference
All parameters are accessible in the EA's Inputs tab when attaching to a chart. Default values represent the optimised configuration from the 2022–2026 backtest.
Core parameters
| Parameter | Default | Range | Description |
|---|---|---|---|
| RiskPercent | 1.0 | 0.5 – 5.0 | Account risk per trade (%) |
| RRRatio | 2.0 | 1.5 – 3.0 | Take-profit multiplier vs stop-loss |
| SLMultiplier | 1.0 | 0.8 – 1.5 | ATR multiplier for stop-loss distance |
| MinConfluence | 4 | 3 – 5 | Minimum confluence score to enter |
| MaxSpread | 30 | 10 – 60 | Maximum spread in points to allow entry |
| MagicNumber | 20240101 | Any int | Unique identifier for EA orders |
Indicator parameters
| Parameter | Default | Description |
|---|---|---|
| EMA_Fast | 21 | Fast EMA period |
| EMA_Slow | 50 | Slow EMA period |
| RSI_Period | 14 | RSI calculation period |
| RSI_BuyMin | 40 | RSI lower bound for BUY |
| RSI_BuyMax | 65 | RSI upper bound for BUY |
| RSI_SellMin | 35 | RSI lower bound for SELL |
| RSI_SellMax | 60 | RSI upper bound for SELL |
| ATR_Period | 14 | ATR calculation period |
| MinATR | 1.5 | Minimum ATR in points to allow entry |
| VolMA_Period | 20 | Volume moving average period |
| VolMultiplier | 1.2 | Volume confirmation multiplier |
Session parameters
| Parameter | Default | Description |
|---|---|---|
| SessionStart | 12:00 | Session open (UTC) |
| SessionEnd | 17:00 | Session close (UTC) |
| UseNewsFilter | false | Pause trading around high-impact news |
| NewsPauseMins | 30 | Minutes to pause before/after news event |
Backtesting Results
All backtests were conducted in MetaTrader 4 Strategy Tester using 99% modelling quality tick data from Dukascopy. The test period covers January 2022 through September 2026 — a period that includes the 2022 USD strength cycle, the 2023–2024 gold bull run, and the 2025–2026 consolidation phase.
Summary statistics (default settings, 1% risk)
| Metric | Value |
|---|---|
| Test period | Jan 2022 – Sep 2026 (57 months) |
| Total signals | 1,840 |
| Winning trades | 1,362 (74.2%) |
| Losing trades | 478 (25.8%) |
| Average R:R | 1 : 2.8 |
| Max drawdown | 6.1% (equity) |
| Profit factor | 3.12 |
| Sharpe ratio | 1.84 |
| Average trade duration | 2h 45m |
| Initial deposit | $10,000 |
| Net profit | $48,320 (483.2%) |
Annual breakdown
| Year | Signals | Win Rate | Net Return | Max DD |
|---|---|---|---|---|
| 2022 | 412 | 71.4% | +68.2% | 8.3% |
| 2023 | 398 | 75.1% | +94.7% | 5.1% |
| 2024 | 421 | 76.2% | +112.4% | 4.8% |
| 2025 | 387 | 73.9% | +87.6% | 6.1% |
| 2026 (Jan–Sep) | 222 | 74.3% | +52.1% | 4.2% |
Methodology notes
Spread was set to 20 points (0.20 USD) throughout the backtest — representative of typical ECN raw-spread conditions during the London/NY session. Slippage was modelled at 2 points. No commission was included in the backtest figures; deduct approximately 0.5–1.0% annually for commission costs depending on your broker.
Usage Instructions
Step 1 — Install the EA files
Copy GoldSignalPro.ex4 and the custom volume indicator VolumeFilter.ex4 into your MT4 data folder. Open MT4 → File → Open Data Folder → MQL4 → Experts (for the EA) and MQL4 → Indicators (for VolumeFilter.ex4). Restart MT4 after copying the files.
MT4 Data Folder/
MQL4/
Experts/
GoldSignalPro.ex4 ← place here
Indicators/
VolumeFilter.ex4 ← place hereStep 2 — Configure the chart
Open a new XAUUSD chart and set the timeframe to match your chosen trading mode: M1 or M5 for Scalping, M15/M30/H1 for Day Trading, H4 or D1 for Swing Trading. Ensure the chart has at least 500 bars of history loaded (Tools → Options → Charts → Max bars in chart: 50000). Enable AutoTrading in the MT4 toolbar before attaching the EA.
Step 3 — Attach the EA and configure
Drag GoldSignalPro from the Navigator panel onto the chart. In the Inputs tab, click Load to import the matching .set file for your chosen mode. Then set: TradingMode (0 = Scalping, 1 = Day Trading, 2 = Swing), ExecMode (0 = Semi-Auto, 1 = Full Auto), and RiskPercent. Click OK. The Trading Assistant panel will appear on the chart immediately, and a smiley face icon in the top-right corner confirms the EA is active.
Step 4 — Verify operation
Open the Experts tab in the MT4 terminal. On the next M15 bar close, you should see a log entry from GoldSignalPro confirming it evaluated the confluence conditions. If no log entries appear, check that AutoTrading is enabled and the EA is attached to the correct chart.
Step 5 — Monitor and review
The EA is fully automated — no manual intervention is required during trading hours. Review the Experts log daily to confirm normal operation. Check the Account History tab weekly to reconcile live results against the signal dashboard.