How to Install a Gold Trading Bot on MetaTrader 5
Installing a gold trading bot on MetaTrader 5 takes about ten minutes. Most "the bot isn't trading" messages we get come down to one of the steps below, so it is worth going through them in order.
What you need
- MetaTrader 5 for desktop on Windows or Mac, from your broker's website, or a Windows VPS. The MT5 mobile app cannot run bots.
- An MT5 account at your broker, ideally a demo account to start, with gold (XAUUSD) in the symbol list. Some bots, including Titan, need a hedging account.
- The bot file, usually ending in
.ex5, and your licence key if the bot needs one.
Step by step
- Log in to MT5 with your trading account (File → Login to Trade Account).
- Open the data folder: File → Open Data Folder. Go to
MQL5→Experts. - Copy the bot file (
.ex5) into theExpertsfolder. - Refresh the Navigator: in the Navigator window, right-click Expert Advisors → Refresh, or restart MT5. The bot now appears in the list.
- Allow algo trading: Tools → Options → Expert Advisors, tick "Allow algorithmic trading". If your setup guide says the bot checks its licence online, also tick "Allow WebRequest for listed URL" and add the address given in the guide.
- Open the gold chart: in Market Watch, find XAUUSD. Brokers name it differently (GOLD, XAUUSD.m, XAUUSD+); if you can't see it, right-click Market Watch → Symbols and search for gold. Open a chart and set the timeframe your guide asks for.
- Attach the bot: drag it from the Navigator onto the chart. In the window that opens, on the Common tab tick "Allow Algo Trading". On the Inputs tab, enter your licence key and the risk settings from your guide. Click OK.
- Switch on Algo Trading with the button in the top toolbar. It should turn green.
- Check that it runs: the bot's name appears in the top-right corner of the chart with an active icon, and the Experts tab at the bottom (in the Toolbox window) shows its start-up messages.
Common problems and fixes
| Message or symptom | Fix |
|---|---|
| "AutoTrading disabled" / no trades | Turn on the Algo Trading button and tick "Allow Algo Trading" in the bot's settings. |
| Licence or connection error | Add the licence address to the WebRequest list (Tools → Options → Expert Advisors) and check the key for typos. |
| Bot on the wrong chart | Attach it to the gold chart, not EURUSD or another symbol. |
| "Not enough money" | The lot size is too big for the balance or leverage; lower it. |
| Nothing happens for hours | Normal for many strategies: the bot waits for its conditions. Check the Experts tab for errors, and the market hours. |
| Trades stop when you close the laptop | MT5 must keep running. Use a VPS or keep the computer awake. |
Before you go live
Let the bot run on the demo account for a while and compare what it does with what you expected. Then move to a live account with a lot size that fits your balance; our guide on how much capital a gold bot needs shows how to choose it.
Installing Titan
After you buy Titan, your licence key, the download and the setup guide appear on the confirmation page and in your email. The licence covers up to three MT5 accounts, demo and live, and reinstalling on an account you already activated doesn't use another slot. If anything doesn't work, send us a message on Telegram and we help you set it up. See the plans.
Trading gold with leverage is risky. Test on a demo account first and only trade with money you can afford to lose.
Questions and answers
Can I run a gold trading bot on my phone?
No. Expert Advisors only run in MetaTrader 5 on a Windows or Mac computer or on a Windows VPS. The MT5 mobile app is great for watching your account, but it cannot run a bot.
Do I need to keep my computer on?
Yes. The bot only works while MT5 is open and connected. If you don't want to leave a computer running, use a VPS.
Does a gold bot for MT5 also work on MT4?
Usually not. MT4 and MT5 use different program formats, so a bot built for MT5 needs MetaTrader 5. Titan runs on MT5 only.
