VPS Setup Trading: The Complete MT4/MT5 Guide
VPS setup trading is the difference between an EA that runs and an EA that trades. A virtual private server keeps MetaTrader 4 or MetaTrader 5 online 24 hours a day, in a data centre close to your broker’s servers, so your expert advisor executes even when your own computer is switched off. This guide covers choosing a server region, minimum specifications, remote desktop access, installing MT4 or MT5, adding your EA, enabling AutoTrading, keep-alive checks and securing the machine. It sits inside the AlgoTM documentation hub, and our VPS partner page compares tested providers.
VPS setup trading: why it matters
An expert advisor only trades while the platform is running and connected to your broker. On a home computer, a power cut, an internet drop-out, a Windows update restart or a closed laptop all stop your EA mid-strategy. Each interruption is a period of unmonitored market risk — and for 24-hour markets, interruptions always seem to happen at the worst moment.
A VPS removes that fragility. The terminal runs in a data centre with redundant power and network connections, managed uptime and a fixed latency path to your broker. That fixed latency matters: for scalping and short-term strategies, a stable millisecond-level connection can be the difference between the fills your backtest assumed and the fills you actually receive. The result is a platform that behaves consistently, day and night, whether you are asleep, at work or on holiday.
VPS setup trading: choosing a region
The single most important choice is location. Your VPS should sit in the same data centre region as your broker’s trade servers. A London broker suits a London VPS; a US broker suits a US east-coast data centre; for Asia, Singapore or Hong Kong. Proximity minimises latency and slippage, which matters most for high-frequency strategies.
If you do not know where your broker’s servers are, ask support. Before committing, use the provider’s free trial or hourly billing to test the connection: ping the broker’s trade server address from the candidate VPS and confirm round-trip time is low and stable. A cheap VPS on the wrong continent will make live execution worse than trading from home, so verify before you pay.
VPS setup trading: minimum specifications
- RAM: 2GB minimum for a single EA on one platform. Choose 4GB if you run multiple expert advisors, both MT4 and MT5, or additional tools such as a trade copier.
- Processor: one or two virtual cores is sufficient for most EAs. CPU-heavy strategies with many indicators may benefit from two dedicated cores.
- Storage: an SSD drive, which keeps the terminal responsive during market spikes. Tick-data archives and logs grow quickly, so choose at least 40-80GB.
- Operating system: a recent Windows Server edition (2019 or 2022) or Windows 10/11, since MT4 and MT5 are native Windows applications. Linux with Wine is not recommended for live trading.
- Network: a stable connection with guaranteed uptime and DDoS protection, plus fast remote desktop access.
Pricing varies widely by provider. Our VPS partner page lists providers we have tested with live EA workloads, including negotiated rates for AlgoTM customers.
Accessing Your VPS with Remote Desktop
Once provisioned, your provider emails the IP address and administrator credentials. Connect using Remote Desktop: the built-in app on Windows, or Microsoft Remote Desktop on a Mac, tablet or phone. Enter the IP and credentials and you will see the server’s desktop.
On first login, change the administrator password immediately and give the machine a memorable name in your remote desktop client. If you use a dynamic IP at home, a VPN or the provider’s gateway makes access more reliable. Confirm the connection is stable before moving on.
Installing MT4 or MT5 and Adding Your EA
Download the platform installer from your broker’s website and run it on the VPS desktop. Log in with your live trading account credentials. Then copy your EA file — .ex4 for MT4 or .ex5 for MT5 — into the Experts folder inside the platform’s data directory, refresh the Navigator panel, and drag the EA onto the chart. Configure the inputs to match the set file you validated during forward testing.
Some EAs also need WebRequest enabled for news feeds or broker APIs: in MT4 open Tools, Options, Expert Advisors and add the required URLs; in MT5 grant permission from the EA’s properties dialogue. If your EA uses a DLL, tick the appropriate permission — but only install DLLs from a source you trust.
Enabling AutoTrading and Running 24/7
Installing the EA is only half the job; the platform must be allowed to trade. In MT5, click the AutoTrading button in the top toolbar until it changes colour. In MT4, open Tools, Options, Expert Advisors and tick Allow automated trading, then confirm the EA dialogue’s Allow live trading box. A failed grey smiley in MT4’s top-right corner, or an alert in MT5, tells you the EA is loaded but not trading.
Then make the server stay awake: disable Windows sleep and hibernation in the power plan, and add a platform shortcut to the Startup folder so MT4 or MT5 launches automatically after reboots. Finally, set a keep-alive routine: once a week, log in via remote desktop, confirm the terminal shows a live connection to the broker, check the Experts log for errors, and restart the platform if anything looks abnormal.
Securing Your Trading VPS
A VPS carrying your trading account is worth protecting, and the essentials take minutes. Set a strong, unique password of at least twelve characters and change the provider default on first login. Never share credentials with third parties offering to “manage” your VPS — neither your broker nor AlgoTM will ever ask for them.
Turn on the Windows firewall and restrict remote desktop connections to your own public IP address, or the VPN you use, so the RDP port is not exposed to the internet. Keep Windows Update automatic, review the terminal logs during your keep-alive check, and disable the default Administrator account in favour of a named user. These steps remove most of the attack surface while the EA runs unattended.
Frequently Asked Questions
Do I need a VPS to run MT4 or MT5 expert advisors?
A VPS is not strictly required, but it is strongly recommended for any live deployment. A virtual private server keeps the platform running 24 hours a day without interruptions from power cuts, internet dropouts or computer restarts, and reduces execution latency by placing the terminal close to your broker’s servers.
What is the minimum VPS specification for trading?
We recommend a minimum of 2GB RAM for a single expert advisor on one platform. Choose 4GB if you run multiple EAs, both MT4 and MT5, or additional tools. Other minimums are one or two virtual cores, an SSD drive and a recent Windows Server operating system.
Where should my trading VPS be located?
Choose a data centre region as close as possible to your broker’s servers. If your broker is based in London, choose a London VPS; for US brokers choose a US data centre. Low latency between your VPS and the broker reduces slippage and improves order execution.
Why does my EA stop trading on the VPS?
The most common causes are the AutoTrading button being disabled, the platform losing its connection to the broker, Windows sleeping or rebooting, and broker server maintenance. Our keep-alive checklist covers disabling sleep, auto-starting the platform and running regular checks.
Risk disclosure: Trading foreign exchange, commodities, CFDs and cryptocurrencies carries a high level of risk and may not be suitable for all investors. Past performance is not indicative of future results. AlgoTM provides trading tools and technology only and does not provide investment advice, portfolio management or guaranteed returns.