MID Gold
- Göstergeler
- Sürüm: 1.14
- Etkinleştirmeler: 5
Overview
MID RCM Gold (Relative Currency Momentum – Gold vs US Dollar) is a professional multi-symbol momentum indicator for MetaTrader 5 that measures the relative strength of Gold (XAU) against the US Dollar (USD) across multiple currency pairs simultaneously.
Unlike traditional indicators that analyze a single symbol, RCM Gold aggregates momentum data from up to 8 gold pairs and 7 USD pairs to produce two smoothed strength lines plotted in a separate window. The relationship (crossovers, spread, and zero-line behavior) between these two lines reveals the true directional bias of Gold versus the Dollar — a powerful edge for XAUUSD traders.
How It Works
The indicator computes a Rate of Change (ROC) for each constituent pair over a configurable period, then:
-
Gold Strength = average ROC of all valid XAU pairs (XAUUSD, XAUEUR, XAUGBP, XAUJPY, XAUCHF, XAUAUD, XAUCAD, XAUNZD)
-
USD Strength = weighted average ROC of USD pairs (EURUSD, GBPUSD, USDJPY, USDCHF, AUDUSD, USDCAD, NZDUSD) with proper sign inversion for correct USD direction
Both series are then smoothed (SMA / EMA / LWMA / SMMA) to filter noise and produce clean, actionable signals.
Key Features & Advantages
🔹 Multi-Currency Confluence
Instead of relying on a single XAUUSD chart, the indicator cross-validates Gold strength against eight gold crosses and USD strength against seven majors. This dramatically reduces false signals caused by isolated pair volatility.
🔹 Synchronized Multi-Timeframe Panel
An on-chart table displays smoothed XAU and USD strength values across D1, H4, H1, and M15, along with an aggregated bias verdict (Bullish / Bearish / Neutral). This gives you instant top-down context — no need to switch timeframes.
🔹 Secure Signal Filter
An optional minimum gap filter (InpSecureGap ) eliminates weak crossovers. A crossover only fires a signal when the XAU/USD spread exceeds the threshold; otherwise, the signal is held in a pending state until confirmation arrives. This is critical for avoiding chop-driven whipsaws.
🔹 Dual Signal Modes
-
Cross mode: signals when XAU strength crosses above/below USD strength
-
Zero mode: signals when XAU momentum flips positive/negative
🔹 EA-Ready Buffers
Two hidden calculation buffers (BufBuySignal , BufSellSignal ) store signal values for direct consumption by Expert Advisors via iCustom() . Arrows on the main chart are drawn in parallel for visual confirmation.
🔹 Broker-Agnostic
Automatic suffix/prefix detection (InpAutoDetect ) handles brokers using symbols like XAUUSD.a , EURUSDm , #XAUUSD , etc.
🔹 Alerts & Notifications
Popup alerts, push notifications, and journal prints on every confirmed signal.
Integration into an Expert Advisor
The indicator exposes 4 buffers:
| Buffer | Index | Type | Purpose |
|---|---|---|---|
| XAU Strength | 0 | INDICATOR_DATA | Visible gold line |
| USD Strength | 1 | INDICATOR_DATA | Visible USD line |
| Buy Signal | 2 | INDICATOR_CALCULATIONS | Non-empty on BUY signal bar |
| Sell Signal | 3 | INDICATOR_CALCULATIONS | Non-empty on SELL signal bar |
Example EA integration (MQL5):
int handle = iCustom(_Symbol, _Period, "MID RCM Gold", InpPeriod, InpSmoothMethod, InpSmoothPeriod, InpPrice, InpSuffix, InpPrefix, InpAutoDetect, true, MODE_XAU_CROSS_USD, false, false, false, true, 0.50, false, false, 10, 50, 9); double buyBuf[], sellBuf[]; ArraySetAsSeries(buyBuf, true); ArraySetAsSeries(sellBuf, true); if(CopyBuffer(handle, 2, 0, 2, buyBuf) > 0 && CopyBuffer(handle, 3, 0, 2, sellBuf) > 0) { if(buyBuf[1] != EMPTY_VALUE && buyBuf[1] != 0.0) // Confirmed BUY signal on last closed bar if(sellBuf[1] != EMPTY_VALUE && sellBuf[1] != 0.0) // Confirmed SELL signal on last closed bar }
⚠️ Always read signal buffers on bar 1 (last closed bar) to avoid repainting on the forming bar.
Recommended EA usage pattern
-
Call iCustom() once in OnInit() , store the handle.
-
In OnTick() , copy buffers 2 and 3 for bar 1.
-
Combine with your own entry logic (e.g., trend filter, risk management).
-
Optionally read buffers 0 and 1 to apply a spread threshold or bias confirmation before entry.
User Guide
Installation
-
Copy MID RCM Gold.mq5 to MQL5/Indicators/
-
Compile in MetaEditor (F7)
-
Drag onto any chart (works best on XAUUSD, but any chart works)
Recommended Settings
| Parameter | Default | Recommendation |
|---|---|---|
| InpPeriod | 14 | 10–20 for scalping, 20–30 for swing |
| InpSmoothMethod | EMA | EMA for responsiveness, SMA for stability |
| InpSmoothPeriod | 3 | 2–5 (higher = smoother, fewer signals) |
| InpSecureSignal | true | Keep enabled |
| InpSecureGap | 0.50 | Increase to 0.75–1.0 for fewer, higher-quality signals |
| InpSignals | true | Enable for live alerts |
| InpDashboard | true | Shows current XAU/USD values on chart |
| InpShowTable | true | MTF bias panel (top-right) |
Reading the Indicator
-
Gold line above USD line → bullish bias for XAUUSD
-
Gold line below USD line → bearish bias
-
Both positive & Gold > USD → strong bullish momentum
-
Both negative & Gold < USD → strong bearish momentum
-
Up arrow (233, lime) below price → confirmed BUY signal
-
Down arrow (234, red) above price → confirmed SELL signal
-
MTF Panel bias → align your trades with the majority timeframe bias
Best Practices
-
Use on M15 or higher for signal reliability (M5 and below generate noise)
-
Wait for bar close before acting on arrows
-
Combine with price action (support/resistance, structure) for entries
-
The MTF panel is your confluence tool — prefer trades aligned with 3/4 or 4/4 bias
Technical Notes
-
Requires MT5 build 2000+
-
No DLL dependencies
-
Works on any broker with standard symbol naming (auto-detection handles suffixes)
-
Does not repaint on closed bars (signals are confirmed at bar close)
Disclaimer
This indicator is provided for educational and analytical purposes. Past performance is not indicative of future results. Always test thoroughly on a demo account before live trading. The author assumes no liability for trading losses.
© MID, 2026 — Version 1.14
