Setup guide
Set up an MT5 expert advisor on a VPS in 20 minutes
An expert advisor that runs on your laptop stops trading the moment the lid closes, the Wi-Fi drops or Windows decides to restart for an update. Gold does not wait for you. A VPS keeps the terminal online 24 hours a day, and the whole setup takes about twenty minutes if you do it in the right order.
1. Open the trading account first
Everything downstream depends on this, so start here. Open a live account with a broker that allows EAs and hedging, then note down three things: the login number, the password, and the exact server name. That server name is where most people get stuck later — "Vantage-Live 4" and "Vantage-Live 5" are different servers and the terminal will not guess for you.
Fund the account before you continue. A demo can prove the bot loads; only a live account tells you what your real spread and execution look like.
2. Rent a VPS close to the broker's server
Latency matters more than raw specs. A cheap 2 GB VPS in the same region as your broker will beat a powerful one on the other side of the world. For most brokers that means London or New York. Two cores and 2–4 GB of RAM comfortably run one terminal with a couple of charts.
Rule of thumb
One terminal per VPS if the bot is grid or hedge based. Those strategies hold many open positions and a stalled terminal at the wrong moment is expensive.3. Install the terminal and log in
Connect to the VPS by Remote Desktop, download MT5 from your broker's own website — not a third-party mirror — and log in with the credentials from step one. Check the bottom-right corner of the terminal: you want a green connection bar with a ping figure, not "No connection".
4. Drop the EA in the right folder
In the terminal open File → Open Data Folder, then go to MQL5 → Experts and paste the .ex5 file there. Restart the terminal. The bot now appears in the Navigator panel under Expert Advisors. If it doesn't, you almost certainly put it in the MQL4 folder or in a subfolder that got nested one level too deep.
5. Enable algo trading, then attach
Go to Tools → Options → Expert Advisors and tick "Allow algorithmic trading". Then press the Algo Trading button in the toolbar so it turns green. Drag the EA onto the chart of the pair it was built for — a gold bot belongs on XAUUSD and nowhere else — and set the inputs you were given.
A smiling face in the top-right corner of the chart means the EA is live. A face with an X means algo trading is still off somewhere.
6. Watch the first trade, then leave it alone
Stay on the VPS until the bot opens and manages one position. Confirm the lot size matches what you configured and the stop loss is where you expect. After that, resist the urge to interfere. Manual intervention halfway through an automated sequence is the single most common way a working system is turned into a losing one.
Weekly checklist
- Terminal still connected, and the Algo Trading button still green
- Free margin above the level your risk plan allows
- Windows updates not scheduled to reboot the VPS during market hours
- Broker emails read — server migrations and spec changes are announced by mail
Twenty minutes of care at the start saves the week where the bot was offline and nobody noticed until Friday.
Want us to set this up on your account?
Message on WhatsApp