Gold, Indices and Bitcoin 8 min read

How to choose an XAUUSD Expert Advisor for MT4 and MT5

gold price chart on MetaTrader with a five-point checklist for an automated XAUUSD strategy: strategy type, broker spread, stop size, balance and verified history

Choosing an XAUUSD Expert Advisor comes down to five checks: a strategy type that fits the account, spread and stops-level tolerance on your broker, a lot size the balance can carry, setfiles for your platform, and a verified trading history.

Gold moves more dollars per lot than a major forex pair, so the same setting carries more risk on XAUUSD. This guide explains what makes gold different for an Expert Advisor, compares the strategy types, shows how to check an Expert Advisor against your broker and balance, and gives a test plan before live trading. HiPips does not rank individual gold Expert Advisors here; the checks below apply to any of them. This guide is part of the HiPips path to choose, test and run an MT4 or MT5 Expert Advisor, which starts with what an Expert Advisor is.

What is an XAUUSD Expert Advisor?

An XAUUSD Expert Advisor is an Expert Advisor for MT4 or MT5 whose entry, exit and risk rules are built for spot gold priced in US dollars, the symbol brokers list as XAUUSD or GOLD.

A gold Expert Advisor differs from a forex Expert Advisor in its inputs, not in how it installs. Stop loss, take profit and maximum spread inputs are sized for gold’s price scale, trading hours follow gold’s session, and lot inputs assume gold’s contract size. A forex Expert Advisor attached to a gold chart without a gold setfile uses distances built for another instrument.

What makes XAUUSD different from forex pairs for an Expert Advisor?

XAUUSD differs from forex pairs in four ways that change an Expert Advisor’s risk: contract size, dollar value of a move, trading hours and leverage limits.

A standard XAUUSD lot is 100 troy ounces at many brokers, so a $1.00 move in the gold price changes a 1-lot position by $100 and a 0.01-lot position by $1. Exness lists XAUUSD at 100 troy ounces per lot with a 0.01 lot minimum in its commodities specification. Contract sizes are not the same at every broker, so read the Specification window before trusting a setfile. The comparison below uses EURUSD as the forex reference.

PropertyEURUSDXAUUSD
Standard contract100,000 euros100 troy ounces (check the broker)
Value of the quoted move per 1 lot$10 per 0.0001$100 per $1.00
Market day24 hours, Monday to FridayNear 24 hours with a daily break
EU retail leverage cap30:120:1
Typical symbol namesEURUSD, EURUSD.proXAUUSD, GOLD, XAUUSD.pro, XAUUSDm

Gold trades almost around the clock with a daily pause. COMEX gold futures trade Sunday to Friday from 6:00 p.m. to 5:00 p.m. Eastern Time with a one-hour break each day, according to CME Group, and broker CFD sessions follow a similar pattern in server time. Spreads widen around that break and around US data releases, which is where a gold Expert Advisor’s spread filter and news filter do their work. ESMA caps retail leverage on gold at 20:1 against 30:1 on major currency pairs, according to ESMA.

Which strategy types do XAUUSD Expert Advisors use?

XAUUSD Expert Advisors use five main strategy types: scalping, breakout, trend or swing, grid or recovery, and single-entry systems, and each one asks something different of the broker and the account.

No strategy type is best for gold in general. The right type depends on the broker’s spread and execution, the account balance and the drawdown the owner accepts. The table below compares them.

Strategy typeTradesNeeds from the brokerMain risk
ScalpingMany per day, small targetsRaw spread, low commission, fast execution, VPSSpread and slippage consume the target
BreakoutFew per day around session opensStable fills during fast movesFalse breakouts and news spikes
Trend or swingFew per week, wide stopsLow swap, reliable overnight holdingLarge stop in dollars per lot
Grid or recoveryMany open at onceHigh margin headroomExposure grows while price trends against the grid
Single-entry with fixed stopOne position at a timeNormal conditionsLosing streaks, which are easy to measure

A single-entry Expert Advisor with a fixed stop is the easiest type to audit, because its exposure equals one position. Recovery systems on gold need the maximum lot, maximum trades and equity stop inputs explained in Expert Advisor risk settings, and traders who exclude them start from no-martingale gold Expert Advisors.

How to check an XAUUSD Expert Advisor against your broker

An XAUUSD Expert Advisor fits a broker when the broker’s gold spread, commission, stops level, lot limits and symbol name match what the Expert Advisor and its setfile expect.

The broker checks are listed below. Open Market Watch, right-click the gold symbol and choose Specification for most of them.

  1. Symbol name: XAUUSD, GOLD or a suffixed name; the setfile and chart must use the broker’s name.
  2. Digits: gold quoted with 2 digits makes 1 point $0.01, and with 3 digits 1 point is $0.001, so a “maximum spread 30 points” input means $0.30 on one broker and $0.03 on another.
  3. Spread and commission: compare the average spread in the Expert Advisor’s trading hours with its maximum-spread input, and add the commission of a raw account.
  4. Stops level: the broker’s minimum stop distance must be smaller than the Expert Advisor’s stop loss and take profit.
  5. Contract size, minimum lot and lot step: these decide the dollar risk of the smallest trade.
  6. Server time: session inputs in the setfile refer to the server time of the broker the setfile was built on.

Broker conditions for gold in detail, including raw spread and slippage, are covered in XAUUSD broker requirements.

How much account does an XAUUSD Expert Advisor need?

An XAUUSD Expert Advisor needs a balance large enough that its stop loss at the minimum lot stays within the risk per trade the owner accepts.

On a 100-ounce contract, 0.01 lot is 1 ounce, so every $1.00 of stop distance risks $1. The table below shows the smallest balance that keeps one 0.01-lot trade at 1% and at 2% risk for four stop distances.

Stop distance in gold priceLoss at 0.01 lotBalance for 1% riskBalance for 2% risk
$3.00$3$300$150
$5.00$5$500$250
$10.00$10$1,000$500
$20.00$20$2,000$1,000

A swing Expert Advisor with a $20 stop on a $500 account risks 4% on its smallest possible trade, before any second position opens. A small account suits a gold Expert Advisor with short stops and one position at a time, or a cent account; stacking two gold Expert Advisors on one small account doubles exposure to the same price move.

MT4 or MT5 for an XAUUSD Expert Advisor?

The platform for an XAUUSD Expert Advisor follows the broker account: an MT5 Expert Advisor needs an MT5 account, and an MT4 Expert Advisor needs an MT4 account, because the .ex4 and .ex5 files do not cross over.

MT5 offers one testing advantage for gold. The MT5 Strategy Tester’s “Every tick based on real ticks” mode tests on real ticks accumulated by brokers with no simulation, and the tester can add a random or fixed execution delay, according to the MetaTrader 5 help on strategy testing. Real ticks carry gold’s changing spread into the test, which matters for scalping. An MT5 account with the netting system merges positions per symbol, so a gold grid Expert Advisor needs a hedging MT5 account. The other platform differences are compared in MT4 vs MT5 Expert Advisors.

How to verify an XAUUSD Expert Advisor before using it

Verifying an XAUUSD Expert Advisor takes three steps: read its verified live history, backtest it on real ticks with your broker’s data, and forward test it on a demo account through the London and New York sessions. The verification steps are listed below.

  1. Live history: a track record on a third-party verification service, with equity drawdown and the account’s start date, not only a balance screenshot.
  2. Real-tick backtest: the same setfile on your broker’s XAUUSD data, with an execution delay added, reading equity drawdown and maximal consecutive losses.
  3. Demo forward test: at least several weeks on the live broker’s symbol, recording spread and slippage in each session and around US data releases.

Red flags on gold include a martingale or grid with no equity stop, a “no stop loss” design presented as low risk, and claims of fixed monthly returns. The guide on how to verify a forex robot before buying explains Myfxbook checks and backtest red flags, and the guide on how to backtest an MT5 Expert Advisor gives the tester settings.

Which inputs matter most in an XAUUSD setfile?

The inputs that matter most in an XAUUSD setfile are lot or risk percentage, stop loss, maximum spread, trading hours, news filter and maximum open trades, because each one is sized for gold’s price scale and the broker it was built on.

Check each input against the broker checks above: spread and stop inputs in points depend on the broker’s digits, and hour inputs depend on its server time. Save the vendor’s setfile unchanged and edit a renamed copy. The guide to XAUUSD Expert Advisor setfiles walks through these inputs one by one.

What is the best Expert Advisor for XAUUSD on MT5?

The best Expert Advisor for XAUUSD on MT5 is the one that passes all five checks on your own broker and balance, in the order below.

  1. Verified history: a live track record with equity drawdown the owner accepts.
  2. Broker fit: spread, stops level and symbol name match the setfile.
  3. Balance fit: the stop at the minimum lot stays within the risk per trade.
  4. Strategy fit: the strategy type suits the broker’s execution and the owner’s time horizon.
  5. Test result: the real-tick backtest and the demo forward test agree with the live history.

Compare XAUUSD Expert Advisors for MT5 against these five checks and test the shortlist on demo before any live account.

Is there a scalping Expert Advisor for gold?

Scalping Expert Advisors for gold exist, and they depend on broker conditions more than any other gold strategy type: a raw spread account, low commission, fast execution and a VPS near the broker. A scalping target of a few dollars on the gold price leaves little room for a spread that widens at the daily break. The guide to gold scalping Expert Advisors covers session and spread checks, and the guide to a raw spread account for XAUUSD scalping compares account types.

Why is XAUUSD not available in MT5?

XAUUSD is missing from MT5 when the symbol is hidden in Market Watch, listed under another name such as GOLD, or not offered on the account type. All symbols of the account appear in the Market Watch symbols list, where a double-click or the Show button adds a hidden symbol, according to the MetaTrader 5 help on Market Watch. A symbol that is absent from the list is not offered on that account, and the broker’s account types page shows which accounts include gold.

author-avatar

About James Miller

James Miller writes the HiPips guides on choosing, testing and running MetaTrader 4 and MetaTrader 5 Expert Advisors. He has four years of MQL programming and trading experience, and his guides cite MetaQuotes documentation for platform facts and state the risks of leveraged trading.

Leave a Reply

Your email address will not be published. Required fields are marked *