Gold EA Guide: How XAUUSD Expert Advisors Work and What to Check Before You Buy
EABuild Team · · 9 min read

A gold EA is an expert advisor, a program that places and manages trades for you inside MetaTrader, that is built to trade gold, usually as the XAUUSD symbol. This guide explains how these EAs make their decisions, why gold behaves differently from a currency pair, which strategy types you will meet, and what to check before you attach one to a live account.
What a gold EA is
An expert advisor (EA) is a compiled file that runs on a chart in MetaTrader 4 or MetaTrader 5. Once algo trading is switched on, it reads price data, applies its rules and sends orders to your broker without you clicking. A gold EA is the same kind of file, tuned for the way XAUUSD moves.
XAUUSD is the price of one troy ounce of gold quoted in US dollars. Brokers may name the symbol slightly differently, for example with a suffix, so always check the exact name in your Market Watch window before you attach anything.
An EA follows rules, not judgement. It does not know why price moved and it cannot see news the way you do unless its logic includes a news component. That is why the strategy type matters more than the marketing around it.
Why gold needs its own kind of EA
Gold is quoted with large price numbers and moves in bigger steps than most currency pairs. An EA written for a calm EURUSD range can behave very differently on XAUUSD, because stop distances, lot sizes and spreads all scale differently.
Spread and execution
The spread is the gap between the buy price and the sell price, and you pay it on every trade. On gold it is quoted in points and varies from broker to broker and from hour to hour. Short-term strategies open many trades, so spread and execution speed shape their results more than they do for a strategy that holds for days.
Volatility
Gold can move sharply around economic releases and during the busiest trading hours, and it can go quiet at other times. Volatility is the size of recent price swings. A fixed stop loss that works in a quiet period may be too tight in a fast one, which is why many of these EAs offer inputs for stop distance, lot size and trading hours.
Lot size and contract size
A lot is the standard trade size, and one lot of gold does not equal one lot of a currency pair in money terms. Check your broker's contract size for XAUUSD and calculate what a one-point or one-dollar move means for your lot size before you trade live.
Common strategy types on XAUUSD
Most EAs for gold fall into a few families. Many mix two of them, so read the strategy line on a listing rather than guessing from the product name.
Scalping
Scalping means many short trades that aim at small price moves. It depends on tight spreads and fast execution, and it is sensitive to the broker you use. Short timeframes such as M5 and M15 are typical for this style.
Breakout
A breakout strategy enters when price leaves a range. Some EAs mark the high and low of a session and trade the move beyond it. False breakouts happen, where price pokes out of the range and returns, so the exit rules deserve as much attention as the entry.
Trend following
A trend-following EA tries to trade in the direction of the prevailing move and stay out, or trade smaller, when price has no clear direction. It can struggle in choppy ranges, where the signals flip often.
Grid and martingale
A grid strategy opens extra orders at set price steps. Martingale means increasing the lot size after a losing trade. When both are combined, open exposure can grow while price moves against the first order, and drawdown (the drop from an account's peak balance) can rise quickly. Gold's large moves make this worth understanding in detail before you go live.
News trading and hedging
News trading places trades around economic releases, when spreads can widen and slippage is common. Hedging holds buy and sell positions on the same symbol at once, so check that your broker and account type allow it.
Products in this shop listed for XAUUSD
The products below are all listed for XAUUSD. They are described only by what their listings state, so use this section to match a strategy type to what you want to study, not to predict anything about results.
Gold Scalping EA for MT4 is a scalping and breakout expert advisor for MetaTrader 4, listed for XAUUSD on the M5 and M15 timeframes. The download includes the EA file, one helper file and one set file (a saved list of input settings you load in MetaTrader). The listing gives a recommended minimum deposit of $100.
Gold Trend Scalping EA for MT4 combines trend following with scalping and is listed for XAUUSD and US30 on M15. It needs MetaTrader 4 build 1471 or higher, and the download includes 15 set files, which gives you a range of starting configurations to study.
Happy Gold EA for MT5 is an MT5 expert advisor listed for XAUUSD on M15 and M30, with hedging and scalping logic. The listing gives a recommended minimum deposit of $500, and the download contains no set files, so its inputs are configured in the EA's settings window.
Global Trade Plan EA for MT5 uses a news trading approach on XAUUSD and the H1 timeframe, and the download includes six set files. Because it is built around economic releases, spread and slippage around those events matter for it in particular.
Mad Turtle EA for MT5 is listed for scalping with a grid and martingale on XAUUSD, on H1 and M15, with seven set files in the download. The grid and martingale elements are the kind of exposure described above, so read its inputs carefully and test conservatively.
What to check before you buy
A listing tells you what a file is built to do. It cannot tell you how the file will behave on your account, so treat the following as a checklist.
- Platform. An MT4 file will not run on MT5 and the reverse. Check the platform and any minimum build number on the listing.
- Symbol and timeframe. Use the symbol and timeframe the listing names. Running an EA on a chart it was not designed for changes its behaviour.
- Strategy type. Decide whether you are comfortable with it. If the listing mentions grid or martingale, understand how exposure grows before you commit funds.
- Recommended minimum deposit. This is a figure the listing states, not a promise that a smaller or larger balance behaves in any set way. Match your lot size to your own balance and risk limit.
- Files in the download. Note how many set files and helper files come with it, and whether a DLL is needed. The listings above state DLL as not required.
- Broker conditions. Spread, execution, hedging permission and the exact symbol name come from your broker, not from the EA.
Be careful with track records too. A third-party tracking site such as Myfxbook shows what a particular account did over a period, which depends on its broker, settings and the market at the time. It does not describe what another account will do, and this shop makes no claim about any product's track record.
How to test an EA before trading live
Testing reduces surprises, but it does not remove risk. A sensible order of work looks like this.
- Install the file following the guide for your platform: how to install an EA in MT4 or how to install an EA in MT5.
- Open a demo account with a broker whose XAUUSD conditions are similar to the account you plan to use, and attach the EA to the chart and timeframe named in its listing.
- Load one set file, or enter the inputs yourself, and read what every input does before you change it. A set file is a starting configuration, not a recommendation of results.
- Run it on the demo account for long enough to see it handle different conditions, including a news release and a quiet session.
- Watch the spread, slippage and the number of open orders. If the EA uses a grid or martingale, note how large the open exposure becomes.
- Use the Strategy Tester in MetaTrader to study behaviour, remembering that historical tests use past data and cannot reproduce live execution.
- Decide your own limits first: the lot size, the largest drawdown you accept and the point at which you switch the EA off.
If you go live afterwards, start with the smallest lot size your broker allows and review the account regularly. The MetaTrader platform itself can be downloaded from metatrader5.com if you need a fresh copy for testing.
Common problems and how to read them
The EA does not open any trades
Check that algo trading is switched on, that the EA shows a smiling face or active icon on the chart, and that the symbol name matches the one the EA expects. Also check the trading hours and filters in the inputs, because many EAs wait for specific conditions.
Results differ between demo and live
Differences in spread, slippage and execution speed are normal. Scalping and news strategies feel these differences most, because their trade targets are small compared with the cost of each trade.
Drawdown grows faster than expected
Review the lot size and, if the EA uses a grid or martingale, the step distance and lot multiplier. Reduce size on the demo account and observe again before changing anything on a live account.
Choosing a strategy that fits your approach
Start from how you want to learn, not from a promise. If you prefer short trades and accept the importance of spread, scalping and breakout files are the natural place to begin. If you prefer fewer decisions around volatile hours, a trend or news approach may suit you better. If you want more complexity and exposure to study, grid and martingale designs exist, with the extra care they demand.
Every product in the shop is a digital download, and all of them are included in the membership, which gives you access to every product in the catalogue. Whatever you pick, test it on a demo account first and check the settings before you trade live.
Trading foreign exchange and CFDs carries a high level of risk and may not be suitable for all investors. Past performance does not guarantee future results; only trade with money you can afford to lose.
Tags: Gold EAs, Expert Advisors, XAUUSD


