How to automate a gold strategy on MT5 without coding
Run your tested gold rules on your own MetaTrader 5 account automatically, without coding and without keeping a PC on.
Why automate
An automated strategy follows its rules on every closed candle, day and night, without hesitation or missed signals. It only makes sense for rules you have already tested well, on a demo account first.
What you need
- An MT5 account with your broker (start with a demo account).
- A strategy you have backtested in XauLab, ideally on your broker's own candles.
- A broker connection plan for that MT5 account (Broker Basic, Plus or Max), and the broker connection set up in XauLab.
Step by step
- Connect your MT5 account in XauLab. It runs in the cloud, so your computer does not need to stay on.
- Open the strategy and press Deploy. Choose the MT5 account and check the symbol.
- Set the live lot size. The stop loss, take profit and rules are locked to the version you backtested, and the strategy holds one position at a time, like the backtest.
- Read and accept the risk notice, then deploy, first to a demo account.
- Watch it in the Broker Connection and turn on email alerts for trades and problems in Settings.
Keep risk under control
- Start on demo and compare the live trades with the backtest for a few weeks.
- Use small lots on a real account and raise them only after consistent results.
- Make sure every strategy has a stop loss, so one bad trade cannot grow without limit.
- Check the Broker Connection for connection problems; XauLab alerts you when the broker cannot be reached.
Ready to try it on XauLab?
See how deploying worksEducational content, not financial advice. Trading gold with leverage carries a high risk of loss, and past results do not guarantee future returns. Read the risk disclosure.