AurumAlert
- Experts
- Samuel Yip Jing Han
- Versione: 6.0
- Attivazioni: 10
AurumAlert — CCI Gold Swing EA v6
A fully automated MetaTrader 5 Expert Advisor for swing trading XAUUSD (Gold) on the H1 timeframe. AurumAlert combines a dual-CCI crossover system with divergence detection, an ADX trend filter, and an H1 RSI confirmation layer to identify high-probability trend-following entries on Gold. The ATR trailing stop rides extended moves and locks in profit progressively.
Technical support is provided for XAUUSD H1 only. Hedging account required.Full documentation file will be provided after purchase. Kindly PM me for the file.
📊 Backtest Results — 2020 to 2025 (XAUUSD H1)
Tested on Pepperstone Group Limited historical data at 98% tick quality. Starting balance: SGD $3,000 at 1:100 leverage. All default parameters.
| Metric | Value | Metric | Value |
|---|---|---|---|
| Test Period | 2020.01.01 – 2025.12.31 | History Quality | 98% |
| Total Net Profit | +$2,071.22 | Final Balance | $5,071.22 |
| Total Trades | 283 | Win Rate | 77.03% (218/283) |
| Profit Factor | 1.63 | Expected Payoff | $7.32 / trade |
| Sharpe Ratio | 1.62 | Recovery Factor | 3.33 |
| Max Balance Drawdown | $584.81 (17.29%) | Max Equity Drawdown | $621.23 (18.26%) |
| Avg Profit Trade | $24.61 | Avg Loss Trade | -$50.68 |
| Long Trades Won | 77.36% (265 trades) | Short Trades Won | 72.22% (18 trades) |
| Max Consecutive Wins | 15 ($282.88) | Max Consecutive Losses | 4 (-$106.98) |
Past backtest results do not guarantee future performance. The strategy tester cannot replicate live spread widening, slippage, or requotes.
📅 Year-by-Year Breakdown
| Year | Trades | Win Rate | Net P&L | Min Hold | Avg Hold | Max Hold |
|---|---|---|---|---|---|---|
| 2020 | 58 | 74.1% | +$231 | 4h 19m | 3d 21h | 20d 8h |
| 2021 | 34 | 61.8% | -$216 | 3h 45m | 6d 5h | 22d 12h |
| 2022 | 38 | 65.8% | -$61 | 9h 5m | 4d 20h | 13d 22h |
| 2023 | 38 | 84.2% | +$239 | 7h 15m | 5d 8h | 16d 12h |
| 2024 | 49 | 79.6% | +$197 | 1h 32m | 4d 20h | 31d 19h |
| 2025 | 66 | 87.9% | +$1,682 | 2h 4m | 2d 23h | 11d 6h |
| Total | 283 | 77.0% | +$2,071 | 1h 32m | 4d 10h | 31d 19h |
2021 and 2022 were loss years — Gold was in a choppy, mean-reverting range during the Fed tightening cycle. This is expected for any trend-following system. The account survived both loss years without margin risk, and recovered fully in 2023 when Gold resumed directional behaviour.
Live signals: https://www.mql5.com/en/signals/2350211
⚙ How It Works
The EA evaluates a strict signal pipeline on every new tick. No trade is placed unless the entire stack of conditions is satisfied simultaneously.
Indicators Used
- CCI Fast (Period 5, PRICE_CLOSE) — Primary entry trigger. A crossover above or below zero fires the trade signal.
- CCI Slow (Period 70, PRICE_CLOSE) — Trend confirmation filter. For standard buy entries, CCI70 must be above zero (uptrend confirmed).
- ADX (Period 20, Threshold 30) — Trend strength gate. ADX must exceed 30 before any entry is allowed. Prevents trading in low-momentum, sideways markets.
- RSI H1 (Period 14) — Overbought/oversold confirmation. Buys require RSI < 20 (alternative path) or CCI70 confirmation. Sells require RSI > 80.
- ATR (Period 14) — Used exclusively for the dynamic trailing stop calculation (ATR × 2.5 multiplier).
Buy (Long) Entry — All conditions must be true simultaneously
- Standard: CCI5 crosses above zero AND CCI70 > 0 AND ADX > 30 AND no existing BUY open
- Alternative: CCI5 crosses above zero AND ADX > 30 AND H1 RSI < 20 AND no existing BUY open
- Divergence: Price makes lower low but CCI5 makes higher low AND CCI5 below zero AND ADX > 30
Sell (Short) Entry — All conditions must be true simultaneously
- Standard: CCI5 crosses below zero AND ADX > 30 AND H1 RSI > 80 AND no existing SELL open
- Divergence: Price makes higher high but CCI5 makes lower high AND CCI5 above zero AND ADX > 30 AND H1 RSI > 80
ATR Trailing Stop — Two-Phase Management
- Phase 1 (Fixed): Initial SL placed at 2.5% from entry. TP calculated at 1:1 R:R (default). Both remain static.
- Phase 2 (ATR Trail): Once price travels 40% of the TP distance, the ATR trailing stop activates. The SL ratchets in the profit direction — never backwards. Trail = current price ± (ATR × 2.5). This allows the EA to ride extended Gold trends while protecting accumulated profit.
- Minimum Stop Guard: Before every SL modification, the EA checks the broker's minimum stop level to prevent order rejection errors.
Exit Logic
- Take Profit hit — MT5 closes automatically
- Stop Loss hit — initial fixed SL (Phase 1) or ATR trail SL (Phase 2)
- ATR trail ratchets above entry (longs) or below entry (shorts) — trade closes with locked profit on reversal
Position Sizing
Lot size is calculated dynamically: Lots = (Balance / ExchangeRate × RiskPct%) / (SL_Distance / TickSize × TickValue)
- Minimum balance guard: trade aborted if balance below USD $500 equivalent
- Margin sufficiency check via OrderCalcMargin() — lots scaled down to fit free margin if needed
📋 Trade Frequency & Holding Time — What to Expect
This is a swing trading EA, not a scalper. Trades are designed to hold for hours to days, giving the ATR trail time to ride the trend.
- Frequency: ~47 trades per year on average (~4 per month). Ranges from 34/year in slow sideways years to 66/year in strong trending conditions.
- Shortest trade: 1h 32m — fast stop-loss hit when price reverses immediately after entry
- Average trade duration: 4 days 10 hours — a trade opened Monday may not resolve until Friday
- Longest trade: 31 days 19 hours — the ATR trail riding a sustained Gold bull trend
- Do not manually close trades just because they have been open several days — this is normal and expected behaviour
✔ When the EA Performs Well
- Strong directional Gold trends with ADX consistently above 30
- Post-breakout momentum after Gold exits a consolidation zone
- Macro-driven sustained flows — Fed decisions, geopolitical events, risk-on/risk-off regime shifts
- London and New York session intraday trend continuation on H1
- Low spread environments (under 30 points on XAUUSD)
⚠ When Losses Are Mathematically Inevitable
- Low-ADX sideways or choppy price action — false crossovers generate stop-out sequences
- News-driven spike-and-reverse patterns that trigger entries then immediately reverse
- Spread widening during news events (NFP, FOMC) — enter manually after the event if needed
- Persistent mean-reverting price action with no sustained directional bias
These are not bugs — they are the fundamental cost of running a trend-following system. The ADX filter mitigates this by refusing entry when trend strength is insufficient, but cannot eliminate it entirely.
🖥 Account & Setup Requirements
| Requirement | Specification |
|---|---|
| Account Type | MT5 Hedging account — required for simultaneous buy and sell positions |
| Platform | MetaTrader 5 only — NOT compatible with MT4 |
| Minimum Balance | USD $500 equivalent recommended |
| Primary Instrument | XAUUSD (Gold vs USD) — technical support for this instrument only |
| Timeframe | H1 (1-Hour chart) — attach the EA to an H1 XAUUSD chart |
| Leverage | Minimum 1:100 recommended |
Installation
- Copy the .ex5 file to your MT5 MQL5/Experts/ folder
- Restart MetaTrader 5 and locate the EA in the Navigator panel
- Open an XAUUSD H1 chart
- Drag the EA onto the chart — ensure "Allow Algo Trading" is checked
- Verify your account is a Hedging type (check account properties)
- Update InpExchangeRate to match your account currency vs USD
- Enable AutoTrading in MT5 toolbar — the smiley face icon confirms the EA is active
- Monitor using the Experts tab in MT5 terminal for log output and heartbeat messages
⚠ Risk Warning
This EA is a tool, not a guaranteed profit system. All trading involves risk. Past backtest or forward-test results do not guarantee future performance. This EA is optimised for XAUUSD H1 only — using it on other instruments or timeframes is entirely at your own risk with no support provided. You alone are responsible for all trading decisions executed on your account. Never trade with funds you cannot afford to lose.
