Gold 5 Strategy EA: Five Gold Strategies in One MT5 Expert Advisor

METATRADER 5 · XAUUSD · v1.45
Gold 5 Strategy EA
Five gold strategies. One Expert Advisor. One chart.
Gold 5 Strategy EA v1.45 backtest results October to November 2026 on XAUUSD M15
NEW · v1.45 UPDATE
Strategy 5 is now the M30 Support / Resistance Breakout, and the live-price trailing stop loss is included. In the October to November 2026 backtest, through the gold crash, v1.45 finished +$791.52 (120 trades, win rate 51.7%, profit factor 1.47). Read the full v1.45 update →

Why one EA with five strategies?

The Gold 5 Strategy EA is a MetaTrader 5 Expert Advisor that runs five separate gold (XAUUSD) strategies from one chart. Each strategy looks for a different kind of opportunity, so the EA is not relying on one idea that only works in one type of market.

Gold behaves differently through the day. It often builds a quiet range in the Asian session, makes a false move in London, and trends or breaks out in New York. Some days it trends cleanly for hours; other days it reverses sharply. One strategy rarely handles all of that well. Five strategies, each with its own entry rules, timeframe and trading hours, can cover more of those conditions.

Each strategy has its own magic number, its own settings and its own ON/OFF switch. You can run all five together, or only the ones you trust.

The five strategies at a glance

#StrategyTimeframeWhat it looks forExit (default settings)
S1RSI + EMA DivergenceH1Fresh RSI divergence at the 200 EMASL beyond the swing, TP 2.5× risk
S2Time Range BreakoutChart TFBreakout of the early-morning rangeSL at opposite border, partial closes at 0.75×, 1.5× and 3× the range
S3MDR LiquidityH1Liquidity sweep, strong push, then pullbackSL beyond the sweep, TP 3× risk
S4H4 Trend PullbackH4 / H1Pullback inside a strong H4 trendFixed SL/TP with trailing stop
S5M30 S/R Breakout NEWM30Breakout of a 9-candle support / resistance level, confirmed by a candle closeSL 0.40% behind the level, TP 2.5× the stop
S1RSI + EMA DivergenceH1

S1 looks for a divergence between price and the RSI: price makes a lower low while the RSI makes a higher low, or the reverse for sells. It only trades when the swing touches the 200 EMA and the divergence is fresh, and it needs a confirming candle before entry.

S2Time Range BreakoutChart timeframe

S2 marks the high and low of the early session (01:00 to 06:00 server time by default), then places buy-stop and sell-stop orders at the edges of that range. A trade that runs takes profit in steps, and the stop moves into profit after the first step. Unfilled orders are removed in the evening and open trades close before the end of the day. Optional filters can require a candle to close beyond the range, so a quick spike does not trigger a trade.

S3MDR: Manipulation, Displacement, RebalanceH1

S3 trades a three-step pattern during a set morning window. First price sweeps a recent high or low and closes back inside it. Then a strong candle pushes the other way. Finally, the EA enters when price pulls back part of the way into that move.

S4H4 Trend PullbackH4 trend · H1 entry

S4 checks whether gold has made a strong move on the H4 chart (larger than 3× the H1 ATR). If it has, it waits for a short-term pullback on the H1 RSI and enters in the direction of the trend. It can hold up to two positions, uses a trailing stop, and closes everything before the weekend.

S5M30 Support / Resistance Breakout NEW in v1.45M30

New in v1.45. S5 builds a support and resistance level from the last 9 candles on the M30 chart. It trades only when a candle closes beyond the level by at least $0.30, and the candle before was still inside, so it catches fresh breakouts and skips most false ones. The stop loss sits 0.40% behind the broken level and the take profit is 2.5× the stop. Only one S5 trade is open at a time, with its own lot sizing (0.01 lot per $2,500 by default). In the October to November 2026 backtest, through the gold crash, S5 made +$542 from 60 trades. See the v1.45 results.

The AMD PRO filter

On top of the five strategies sits a filter that decides which direction is allowed each day. It follows the AMD idea: Accumulation in Asia, Manipulation in London, Distribution in New York.

  1. Asia builds a range. The EA records the high and low of the Asian session (00:00 to 07:00 server time by default).
  2. London sweeps one side. London must push at least 150 points beyond the Asian high or low. This is often a stop hunt.
  3. Market structure shifts. After the sweep, a large candle must close back through a recent swing level.
  4. A fair value gap confirms it. The move must leave a price gap in the new direction.
  5. The day's direction is set. Example: London sweeps the Asian low and price turns up, so the filter allows buys only.

If London takes both sides of the Asian range, the filter blocks new trades for the day by default. Open trades keep their stop loss and take profit. The filter applies to S1, S3, S4 and S5; S2 has its own AMD settings and waits for the London setup before placing orders. One dashboard button switches it on or off.

Risk management and safety

Every trade the EA opens has a stop loss. Position size follows your account balance, and several layers of protection can be switched on.

  • Position sizing. By default 0.01 lot per $1,000 of balance, or a fixed % risk per trade. A maximum lot per trade (5.0 by default) caps the size.
  • Spread limits. Each strategy skips entries when the spread is wider than its limit.
  • Session guard. No new entries in the first or last 15 minutes of the trading session, when spreads are widest.
  • Daily and streak limits. Optional stops after a daily loss, a run of losing trades or loss-limit days, plus a cap on open positions and a Friday cut-off.
  • Broker checks before every order. Stop and freeze levels, free margin and market hours are checked before sending, with retries on requotes.
  • Inverse hedge (optional, S2 only). If a breakout fills on a wick and turns straight back, the EA can open an opposite trade and close both at the other side of the range. Needs a hedging account; off by default.

The dashboard

A colour panel on the chart shows each strategy's trades, win rate, net profit, profit factor, maximum drawdown and open profit or loss, plus a bar showing each strategy's share of total profit. Every strategy has an ON/OFF button; turning one off stops new entries while open trades keep their SL and TP. The AMD PRO filter and the inverse hedge have their own buttons. When the EA is removed or a backtest ends, it exports every trade and a per-strategy summary to CSV.

What you need

Platform
MetaTrader 5
Symbol
XAUUSD (gold)
Account
Any MT5 account (hedging for the inverse hedge)
Times
Broker server time
Running 24/5
VPS recommended

In the next posts I will go through each strategy in more detail and share backtest and live results, including the losing periods.

⚠ Risk warning

Trading gold with leverage carries a high risk of losing money, and you can lose more than you expect in fast markets. Past results, including backtests, do not guarantee future results. This post explains how the EA works and is not financial advice. Only trade with money you can afford to lose, and test any EA on a demo account first.

Watch it run

The full v1.43 test in the MT5 Strategy Tester, with the dashboard tracking all five strategies:

▶ Watch the full test on YouTube

Follow Gold 5 Strategy EA

New versions, backtests and short clips are posted here first:

▶ YouTube𝕏 X♪ TikTok

Comments