FGE ForexGoldEA
Setup guide · July 11, 2026

How to set up a XAUUSD EA on MetaTrader 5, step by step

Settings sliders — configuring a XAUUSD EA on MetaTrader 5

Getting an automated gold strategy running on MetaTrader 5 takes only a few minutes once you know the steps. Here's exactly how to install and configure the ForexGoldEA XAU/USD expert advisor safely.

1. Get the EA file

First you need the EA file itself (an .ex5 file for MetaTrader 5). With ForexGoldEA you unlock it free by opening and funding a live account through our partner broker, then sending your account number on Telegram. You'll receive the MT4 and MT5 builds plus ready-to-run presets.

2. Install the EA in MetaTrader 5

  1. Open MetaTrader 5, then go to File → Open Data Folder.
  2. Open the MQL5 → Experts folder.
  3. Copy the ForexGoldEA .ex5 file into that folder.
  4. Back in MT5, right-click Expert Advisors in the Navigator and choose Refresh. ForexGoldEA now appears in the list.

3. Attach it to an XAU/USD chart

  1. Open a XAU/USD (gold) chart — ideally the timeframe recommended in your preset.
  2. Drag ForexGoldEA from the Navigator onto the chart.
  3. In the settings window, load the supplied preset (Load button in the Inputs tab) so risk parameters are set correctly.

4. Enable auto-trading

Tick Allow Algo Trading in the EA dialog, then make sure the Algo Trading button in the top toolbar is green. A smiling face in the top-right corner of the chart means the EA is active.

Tip: run the EA on a VPS so it trades 24/5 even when your computer is off. Any basic MT5 VPS works.

5. Set your risk limits

Before going live, confirm the inputs match your account size: risk per trade, a daily loss limit, and a maximum drawdown ceiling. Every ForexGoldEA position opens with a fixed stop-loss and take-profit — there is no martingale and no grid without stops. Start conservative and scale up only once you're comfortable.

A quick word on risk

Trading gold (XAU/USD) on margin carries a high level of risk and may not be suitable for everyone. Backtested figures are historical and do not guarantee future results. Never trade with money you cannot afford to lose.

Get ForexGoldEA free → Talk to us on Telegram →

Affiliate disclosure: we earn a commission when you open and fund an account through our partner links, at no extra cost to you.

Frequently asked questions

How do I set up a XAUUSD EA on MT5?

Download the EA file, open MetaTrader 5, go to File then Open Data Folder, then MQL5 then Experts, and copy the file in. Restart MT5, open an XAU/USD chart, drag the EA onto it, and enable Auto Trading.

Why isn't my EA trading on MT5?

The most common cause is that Auto Trading is off. Check the Auto Trading button is green and that the smiley face on the chart is smiling. Also confirm the EA is allowed to trade and your account has funds and an open market.

Do I need a VPS for an MT5 gold EA?

It is strongly recommended. A VPS keeps the EA running 24/5 with low latency to the broker, so it doesn't stop when your PC sleeps or loses connection. It matters most for active strategies.

Can I test the EA before going live?

Yes. Use a demo account or the MT5 Strategy Tester to see how the EA behaves in current conditions before risking real money. Testing first is the single most important step.

Does the gold EA work on MT4 too?

ForexGoldEA is available for both MetaTrader 4 and MT5. The MT5 setup steps are covered here; the MT4 process is very similar but uses the MQL4/Experts folder.