AI Gold Swing MT5

AI Gold Swing MT5 (XAUUSD SWING : OPTIMIZED FOR HEADWAY CENT & IC RAW ACCOUNTS)

AI Gold Swing MT5 is a full-featured algorithmic trading Expert Advisor (EA) for MetaTrader 5 that combines eleven distinct trading strategies into a single, unified engine. Each strategy operates independently—with its own timeframe, indicators, and position management—while sharing a common Bayesian AI Learning Engine that filters trades in real time and improves its edge over time.

From precision Bollinger Band reversals on multiple symbols simultaneously, to weekly swing trades on the Dow Jones (US30), to intraday momentum plays on XAU/USD—AI Gold Swing MT5 is built to catch high-probability setups across instruments and market conditions, while the AI engine continually learns to block low-probability entries before they occur.

Backtest Reproduction

The following settings were used to reproduce the backtest results in the MT5 Strategy Tester:

  1. Broker & Account: IC Markets (Raw Trading Ltd) / Headway Live MetaTrader 5 USD Account

  2. Leverage: 1:1,000

  3. Initial Balance: $10,000

  4. Data Source: Every tick based on real ticks

  5. Backtest Period: January 1, 2025 – October 03, 2026

  6. Parameter Settings: Use the default setting 

"Every trade that closes teaches the bot something. The more it trades, the smarter it becomes—adapting its confidence thresholds to the current market regime in real time."

The 11 Trading Strategies

  • Swing Strategy (H12): EMA/SMA crossover system on the 12-hour chart. Enters on EMA5 crossing above/below SMA21 with slope confirmation, and exits on EMA5 crossing the SMA9 exit line. Features breakeven trigger, profit lock, and dollar-based trailing stop management.

  • Super Swing (Configurable TF, Default H12): A higher-confidence trend-following strategy. Trades EMA/SMA crossovers with strict slope confirmation on both fast and slow averages. Uses the recent swing high/low for precise stop placement and manages exits with a dollar-based trailing stop that activates after a set profit threshold is reached.

  • Swing Breakout (Daily): Range breakout strategy on the Daily chart. Identifies the highest high over a configurable lookback (default 262 days), confirms a bearish candle after the peak, then buys a breakout above that level. Includes breakeven management and partial take-profit functionality.

  • Money Flow Swing (H4): Buys when the H4 Money Flow Index drops into oversold territory and RSI confirms weakness. Uses ATR-derived body filters for quality candle confirmation. Manages the trade through MFI-triggered breakeven, partial close, and full take-profit stages.

  • Intraday Money Flow (H1): Intraday dual-direction strategy (buy and sell) using MFI and RSI on the hourly chart. Enters when both indicators reach extreme oversold or overbought levels simultaneously. Exits are MFI-driven: partial close at a neutral midpoint, then full TP when the indicator reaches the opposite extreme.

  • US30 MF Swing (H4): A dedicated Dow Jones (US30) strategy using MFI + RSI entry combined with a 200-period EMA trend filter. Supports both longs and shorts. Exit logic uses EMA5 vs EMA200 alignment with MFI confirmation for breakeven, partial close, and full take-profit.

  • US30 Weekly MF Swing (Weekly): A high-conviction weekly swing strategy for US30. Enters long when price sits below the EMA50 and both MFI and RSI are in deep oversold territory. Managed through a full breakeven-partial-full TP pipeline driven by MFI recovery and moving average alignment. Capped at a configurable number of trades per week.

  • BB Rejection (H1, Multi-Symbol): The only strategy that trades multiple instruments simultaneously. For each symbol in a configurable comma-separated list, it detects price wicking beyond the Bollinger Band then closing back inside, confirmed by an RSI oversold/overbought reading. Each symbol has its own indicators and independent AI learning bucket. Midway breakeven and partial close built in.

  • RSI Divergence Swing (H4): Detects classic bullish and bearish RSI divergence over a configurable multi-bar lookback on the H4 chart. Requires RSI to be in oversold or overbought territory at the divergence point. Exits are managed with a dollar-based breakeven trigger and an ATR-multiplier trailing stop that activates once a profit threshold is reached.

  • Stochastic OB/OS Reversal (H1): Enters long or short when the Stochastic oscillator reaches extreme oversold or overbought levels, with an optional engulfing candle confirmation and a Keltner Channel squeeze filter. Manages the trade through a dollar-based breakeven, a configurable partial close at a mid target, and a full take-profit trigger.

  • VWAP MA Confluence (M30): Buys or sells pullbacks to the intraday VWAP when price is on the correct side of the EMA200 structure filter. Requires a minimum body size for candle quality. Exits use a dollar-based breakeven followed by a dollar-based trailing stop that activates after a configurable profit threshold is reached.

The AI Learning Engine

Before every trade, the AI engine evaluates the current market environment against a knowledge base built from every previous trade this strategy has ever taken. It calculates a Bayesian posterior win probability—and if that probability falls below the configured minimum confidence threshold, the trade is blocked entirely.

7 Market Features Encoded Per Trade:

  • Hour of day — session-level timing bias

  • Market Regime — Trending / Ranging / Choppy (via ADX, ATR, Efficiency Ratio)

  • Trade Direction — Buy or Sell

  • ADX level — trend strength bucket (rounded to nearest 5)

  • RSI level — momentum condition bucket (rounded to nearest 10)

  • Efficiency Ratio — price directionality over 14 bars

  • Volatility Expansion Ratio — current ATR vs ATR moving average


A 0.95 decay factor ensures the EA prioritises recent market behaviour, adapting to changing broker environments and regime shifts within approximately 20 trades. A consecutive-loss streak penalty (exponential weight suppression) automatically dampens feature weights that have recently underperformed. The AI memory persists across terminal sessions via MQL5 local file storage (FileSave/FileLoad) and ships with embedded pre-trained data so it works intelligently from the very first trade.

Account Protection & Risk Management

Feature

Description

Default

Daily Loss Limit

Closes all EA positions and suspends trading for the day if realised + floating loss exceeds threshold

16% of daily start balance

Daily Profit Lock

Closes all positions and locks in profits if the daily P&L target is hit

26% of daily start balance

Weekly Loss Limit

Monitors live equity drawdown from weekly start balance and halts trading if hit

10% (disabled by default)

Auto Risk Sizing

Every strategy supports per-trade percentage risk; lot size is calculated dynamically from balance, stop loss distance, tick size, and tick value

5% risk per trade

Session Filter

Enable/disable trading during Asian (00:00–07:59), London (08:00–16:00), and New York (13:00–20:00) UTC sessions independently

All sessions enabled

Max Trades Per Day/Week

Per-strategy daily (and weekly for the US30 Weekly strategy) trade count caps

1 per day per strategy

Position Management

  • Breakeven on Every Strategy: All 11 strategies include at least one breakeven trigger, moved either at a dollar threshold, an MFI level, or halfway to take profit.

  • Partial Close: Across strategies, the EA automatically closes a configurable portion of the position (typically 1/2 or 1/3) when a mid-target is reached, booking profit while leaving the runner open.

  • Dollar-Based Trailing Stop: Swing Strategy and Super Swing employ an active trailing stop that locks in progressively higher profits as the price moves in favour.

  • MFI-Driven Exits: Money Flow, Intraday MF, US30 MF, and US30 Weekly strategies use Money Flow Index level as the primary exit signal, keeping the trade open as long as momentum supports it.

  • ATR Trailing Stop: RSI Divergence Swing uses a dynamic ATR-multiplier trailing stop that tightens as volatility contracts, locking in profits without a fixed pip distance.

  • Stochastic-Gated Entries: Stochastic OB/OS Reversal adds an optional engulfing candle filter and Keltner Channel squeeze confirmation before committing to a reversal trade.

  • VWAP Pullback Entries: VWAP MA Confluence anchors intraday entries to the session's volume-weighted average price, ensuring trades are taken at statistically fair value relative to the day's activity.

  • EMA Crossover Exits: The Swing Strategy uses an EMA5 / SMA9 crossover on the H12 to define the exit, ensuring the position only closes when trend momentum is objectively exhausted.

  • Swing High/Low Stop Placement: Super Swing places stops at the recent highest high or lowest low, structurally anchoring risk to market structure rather than arbitrary pip distances.

Multi-Symbol & Multi-Instrument Design

  • BB Rejection Strategy: Natively supports any number of symbols in a single comma-separated parameter string. Each symbol receives its own independent set of indicators, Bollinger Bands, RSI, ATR, ADX, and its own isolated AI learning bucket—meaning the EA learns XAU/USD's band behaviour separately from Volatility Index 75 or US500.

  • US30 Strategies: Operate entirely on the Dow Jones symbol, which the EA auto-detects across 12+ common broker naming conventions (US30, WS30, Dow30, Wall Street 30, DJ30, etc.) without any manual configuration required.

Telegram Notifications

  • Real-time alerts on every position open, with label, direction, symbol, volume, entry, stop loss, and take profit.

  • Real-time alerts on every position modification (breakeven, trailing stop moves).

  • Real-time alerts on every position close with net profit result.

  • Simply enter your Telegram Bot Token and Chat ID in the MT5 inputs—no additional DLL setup required (powered by native MQL5 WebRequest).

Live AI Confidence Panel

A real-time graphical panel drawn directly on the MetaTrader 5 chart displays the current Bayesian win probability for every active strategy. Each row shows a 10-segment visual bar, the confidence percentage, a pass/fail gate indicator (✔ / ✖), and the configured minimum threshold—so you can see at a glance exactly why a trade was taken or blocked, at any moment.

What Sets AI Gold Swing MT5 Apart

  • AI that gets better over time: Not a static indicator bot. The Bayesian engine continuously updates per-feature win/loss stats and applies a dynamic streak penalty to suppress underperforming market conditions automatically.

  • Pre-trained out of the box: Ships with an embedded knowledge base derived from real backtests, so the AI filter is active and meaningful from day one, even on a fresh account.

  • Broker-adaptive: Detects the broker environment and can load broker-specific pre-trained files, minimising the impact of spread and execution differences.

  • Terminal-safe memory: AI learning state persists across sessions, MT5 terminal restarts, and server reconnections using MQL5 local storage files.

  • 11 strategies, one EA: Run a diversified portfolio of trading approaches across multiple timeframes and instruments simultaneously from a single MetaTrader 5 chart.

  • Fully configurable: Every parameter for every strategy is exposed in a clearly grouped MT5 input panel. Nothing is hard-coded. Turn any strategy on or off independently.

Suitable For

  • Gold (XAU/USD) traders seeking automated swing and intraday strategies

  • Dow Jones (US30) traders wanting automated daily-to-weekly swing coverage

  • Synthetic index traders running BB Rejection across Volatility Index 25, 75, Crash 300, and others

  • Prop firm traders needing hard daily and weekly loss limits with automatic position closure in MT5

  • Traders who want a learning EA that improves its own decision-making over live trade history


More from author
Gold Emperor Pro
John Samuel Ifegwu
Gold Emperor Pro – Automated Trading System for XAUUSD (M5) Gold Emperor Pro is a fully automated Expert Advisor designed exclusively for trading XAUUSD on the M5 timeframe . It operates using six independent strategies that work simultaneously to identify trading opportunities under varying market conditions. To begin trading, attach the EA to the XAUUSD M5 chart , adjust parameters as needed, and start the Expert Advisor. For additional trade frequency, you may enable the INCLUDE SCALPING and
Golden Monarch EA
John Samuel Ifegwu
5 (3)
Golden Monarch EA — Smart Growth Engine for XAUUSD Traders Golden Monarch EA is an advanced, performance-driven automated trading system, strategically offered at a heavily discounted price to empower upcoming traders and lower the barrier to professional-grade trading. It is built to help traders plug in with confidence, grow smaller accounts responsibly, and develop consistency through disciplined execution—laying a strong foundation for progression into higher-level opportunities. Powered by
Golden Lion Emperor Apex – A cocktail of highly tuned strategies engineered for apex account growth Golden Lion Emperor Apex is a sophisticated algorithmic engine that blends a powerful cocktail of highly tuned strategies into a single, cohesive trading solution. Engineered specifically for XAUUSD on the M5 timeframe, this system is designed for traders who demand precision, speed, and—above all—apex account growth. To unlock the full momentum of the Apex engine, the system leverages native mul
AI Swing Pro
John Samuel Ifegwu
AI Swing Pro for MetaTrader 5 (XAUUSD SWING : OPTIMIZED FOR HEADWAY CENT & IC RAW ACCOUNTS) AI Swing Pro is a full-featured algorithmic trading Expert Advisor (EA) for MetaTrader 5 that combines eleven distinct trading strategies into a single, unified engine. Each strategy operates independently—with its own timeframe, indicators, and position management—while sharing a common Bayesian AI Learning Engine that filters trades in real time and improves its edge over time. From precision Bollinger
Filter:
No reviews
Reply to review