Home > Blog > XM Trading MT5 EA Setup Guide 2026 | Download & Run Free Gold EA

XM TradingMT5 SetupGold EAEA InstallationBroker Guide

XM Trading MT5 EA Setup Guide 2026 | Download & Run Free Gold EA

Published: 2026-05-22Read time: about 3 min

XM Trading MT5 EA Setup Guide 2026

XM Trading is one of the most widely used brokers for algorithmic trading in Southeast Asia, the Middle East, and Africa. It offers low minimum deposits, a generous welcome bonus, and a solid MT5 platform. If you are setting up an automated gold EA for the first time, XM is a practical choice.

This guide walks you through every step — from opening your account to watching your first automated trade execute.


Step 1: Open an XM Trading Account

Go to the XM Trading registration page and complete the sign-up form. You will need:

  • A valid email address
  • Government-issued photo ID (passport or national ID)
  • Proof of address (utility bill or bank statement, usually less than 3 months old)

Account type recommendation: For running EAs on gold, choose the Standard account. It has a minimum deposit of $5 and supports the GOLD symbol. If you are planning to run scalping EAs that require very tight spreads, consider the Zero account (higher minimum deposit but raw spreads).

Verification typically takes a few hours to one business day.

The $3,000 Welcome Bonus

XM offers a welcome bonus of up to $3,000 for new accounts. This bonus adds to your margin buffer, which means your EA has more room to withstand drawdowns before hitting a margin call. Note that bonus funds cannot be withdrawn directly — only profits earned while using the bonus are withdrawable. Read XM's bonus terms carefully before relying on bonus funds for risk calculation.


Step 2: Download and Install MT5

After your account is verified, log in to the XM Member Area and download MT5 from the platform section. Make sure you download the MT5 version, not MT4 — many EAs on this site are MT5-only and will not work on MT4.

Install MT5 normally. When it launches for the first time, it will ask you to log in. Use the account number and password from your XM registration email. Choose the correct server — XM has multiple servers (e.g., XMTrading-MT5 or XMTrading-MT5 3). The correct server name is in your registration email.


Step 3: Download the EA File

If you have not already, download the free EA from fxea365.com. After completing broker registration through our site, you will receive access to download the .ex5 EA files.

The file you download will have a .ex5 extension. Do not try to open or run this file directly — it must be installed inside the MT5 platform.


Step 4: Install the EA into MT5

  1. In MT5, go to File → Open Data Folder. This opens the MT5 data directory in your file manager.
  2. Navigate to MQL5 → Experts.
  3. Copy or move the .ex5 file into this Experts folder.
  4. Return to MT5 and press F5 or click the Refresh button in the Navigator panel (left side of MT5).
  5. The EA should now appear under Navigator → Expert Advisors.

Step 5: Open the Gold Chart — Critical Symbol Note

This is the most common mistake traders make when setting up EAs on XM.

On XM Trading, gold is listed as GOLD, not XAUUSD.

If you open a chart named XAUUSD and attach the EA, nothing will happen — or the EA will show an error in the Experts log. You must use the symbol name exactly as XM lists it.

To open the correct chart:

  1. In MT5, press Ctrl+U to open Market Watch (or go to View → Market Watch).
  2. Right-click in the Market Watch panel and select Show All to display all available symbols.
  3. Find GOLD in the list and double-click it — this opens a price window.
  4. Right-click GOLD in Market Watch and select New Chart to open a chart for it.
  5. Set the timeframe to match the EA you are using (H1 for most gold EAs on this site).

Step 6: Attach the EA to the Chart

  1. In the Navigator panel on the left, expand Expert Advisors.
  2. Find your EA and drag it onto the GOLD H1 chart.
  3. A settings dialog will appear. This is where you configure the EA's parameters.

Key parameters to set:

ParameterRecommended valueNotes
RiskPercent0.5–1.01% is standard; use 0.5% when starting out
UseFixedLotfalseLet the EA calculate lot size based on RiskPercent
UseCompoundingtrueReinvest profits as balance grows
MaxSpread30Prevents trading when spread is too wide
  1. In the same dialog, go to the Common tab and make sure Allow algorithmic trading is checked.
  2. Click OK.

Step 7: Enable Auto-Trading in MT5

Look at the MT5 toolbar at the top. You will see an Auto Trading button. If it shows a red dot or says "disabled," click it to enable auto-trading. The button should turn green.

You should also check that your MT5 instance allows EAs globally:

  • Go to Tools → Options → Expert Advisors
  • Check Allow automated trading
  • Check Allow DLL imports (required by some EAs)
  • Click OK

Step 8: Verify the EA Is Running

After attaching the EA, look at the top-right corner of the chart. You should see the EA's name and a smiley face icon. A yellow smiley means the EA is attached but auto-trading is disabled globally. A green smiley means the EA is active and will trade when conditions are met.

Check the Experts tab at the bottom of MT5 for log messages. The EA should print initialization messages confirming it started correctly, including the symbol it is monitoring and the risk settings.


Common Mistakes and How to Fix Them

Problem: EA attached but no trades after days

Possible causes:

  • Wrong symbol name (using XAUUSD instead of GOLD on XM)
  • Auto-trading button is disabled (shows red dot in toolbar)
  • The EA's entry conditions have not been met yet (normal — some EAs only trade a few times per week)
  • The spread is too wide and the EA's MaxSpread filter is blocking entries

Problem: "Invalid account" or "License error" in Experts log

The EA may be checking your broker registration. Make sure you downloaded the EA file after completing the broker sign-up through the official fxea365.com link.

Problem: EA trades but results differ from backtest

This is normal to some degree. Live trading involves real spread, slippage, and execution delays that are not perfectly replicated in backtests. Run on a demo account first (select Demo when opening your account) and compare results for 2–4 weeks before switching to live.


Next Steps

Once the EA is running, monitor it once a day. Check the Experts log for any errors, verify that trades are being opened and closed as expected, and confirm that the drawdown stays within expected ranges.

For detailed guidance on setting parameters and managing risk, see our EA setup guide and broker comparison page.

5-Day Email Course (Free)

Get one email a day covering the essentials of FX automated trading, how to read backtests correctly, and tips for choosing a broker.

* Privacy strictly protected. You can unsubscribe at any time.