Do You Need a VPS to Run an MT5 EA?
An EA trades only while its MT5 terminal is running and connected. When a home PC is enough, when you need a VPS, the hosting options compared, and what to check before you choose.
By the AURAX teamPublished 4 min read
On this page (5)
An EA trades only while its MT5 terminal is open, logged in and connected — so for real money, yes, you almost always need a machine that never sleeps, and that usually means a VPS. A home PC is fine for learning on a demo. For a live account, a laptop lid, a Windows update or a router restart can stop the EA in the middle of a position, and it will not resume until someone starts the terminal again.
Part of the MT5 Expert Advisor guide.
Why the EA needs a running terminal
The EA is not in the cloud and not at your broker. It is code running inside your MT5 terminal. When the terminal stops, the EA stops — but your open positions stay open at the broker, now with no one managing them. A strategy that relies on the EA to close a basket, trail a stop or stop adding positions is exposed for as long as the terminal is down.
The hosting options
| Option | Good for | Trade-offs |
|---|---|---|
| Your own PC | Learning, demo accounts | Sleep, updates, power and internet cuts stop it; you must disable sleep and keep MT5 open |
| A Windows VPS you rent | Full control, several terminals | You install, update, secure and restart everything yourself |
| MetaQuotes virtual hosting | Running one account's charts and EAs close to the broker | Built into MT5; check its restrictions (for example on DLLs) against what your EA needs |
| Managed hosting by the EA provider | Hands-off operation | You depend on the provider; they need your login to run the terminal |
MetaQuotes' own hosting is started from inside the terminal (right-click the account in the Navigator → register a virtual server) and migrates the charts and EAs from your terminal to it. After migration, the hosted copy trades; the terminal on your PC should not run the same EA on the same account at the same time.
What to check in a VPS
- Location and latency. Pick a data centre near your broker's trade server. MT5 shows the current ping in the connection indicator at the bottom right of the terminal.
- Uptime and restarts. How often the provider reboots for maintenance, and whether MT5 starts again on its own afterwards.
- Resources. Enough memory and CPU for the number of terminals you run; a starved VPS freezes terminals rather than failing cleanly.
- Operating system. MT5 is a Windows application; a Windows VPS is the path of least resistance.
- Security. Strong remote-desktop credentials, updates applied, nothing else running on the machine.
- Monitoring. Something outside the VPS that tells you when the EA stops reporting — otherwise you find out from the account balance.
How much does latency matter?
For a scalper that aims for small moves, milliseconds decide fills. For a strategy that holds positions for minutes to days, a few tens of milliseconds make little difference; reliability matters far more than raw speed. A fast VPS that restarts every week without bringing MT5 back is worse than a slower one that never goes down.
A reliable setup, step by step
Install MT5 and log in
With the trading password, not the investor password — the investor password is read-only.
Install and allow the EA
As in how to install an EA on MT5 and how to enable algorithmic trading.
Start MT5 automatically
Put a shortcut to the terminal in the Windows startup folder so a reboot brings it back.
Turn off the traps
No sleep, no automatic restarts in trading hours, and the Options switches that disable algo trading on account or profile change left as you intend.
Watch it from outside
An alert when the EA stops reporting, so a dead terminal is a message, not a surprise.
Sources
- MetaTrader 5 Help — MetaQuotes