VPS Setup and 24/7 MT5 Trading Environment — Keeping Your EA Running Non-Stop
Last updated: 2026-05-20 | Estimated reading time: 15 min
An EA only generates value when it is running continuously while the market is open — 24 hours a day, 5 days a week. Running it on a home PC is possible, but exposes you to power outages, reboots, and internet drops. With a VPS (Virtual Private Server), your EA keeps running in the cloud even when your PC is off.
Contents
Why EA Trading Requires a VPS
An EA only runs while MT5 is active. If your PC goes to sleep or shuts down, the EA stops instantly — no new entries, no exits. If your PC freezes while you are holding an open position with floating loss, your stop-loss does not trigger.
A VPS is a virtual PC in a data center that runs around the clock. You access it remotely from your PC or phone, and when you disconnect, MT5 on the VPS keeps running. On every dimension — power reliability, connection stability, and execution speed — a VPS outperforms a home PC setup.
Main Reasons to Use a VPS
- ✓EA keeps running even when your PC is off (24/7 uptime)
- ✓Protected against power outages, OS reboots, and internet drops
- ✓Close proximity to broker servers means faster execution and less slippage
- ✓No impact on your home PC's resources
VPS Spec Requirements
The figures below are for running one to three MT5 instances. Actual requirements vary depending on the number of EAs and the complexity of any calculations involved.
| Spec | Minimum | Recommended |
|---|---|---|
| Memory (RAM) | 2 GB | 4 GB or more |
| CPU | 1 core | 2 cores or more |
| Storage | 30 GB SSD | 50 GB SSD or more |
| Uptime Guarantee (SLA) | 99.9% | 99.99% |
| Location | Same region as your broker's trading server | Near London or New York |
| OS | Windows Server | Windows Server 2019 or later |
Free VPS vs. Commercial VPS
| Criteria | Broker-Provided Free VPS | Commercial VPS |
|---|---|---|
| Cost | Free (conditions apply — trading volume etc.) | Approx. $7–20/month |
| Eligibility | Minimum balance, volume, or lot requirements | No conditions |
| Broker | Locked to the providing broker | Works with any broker |
| Specs | Often minimal configuration | Choose the plan that fits your needs |
| Best for | Traders who already meet that broker's volume requirements | Traders who want flexibility across multiple brokers |
MT5 Setup Steps
Connect to Your VPS Remotely
On Windows, use Remote Desktop Connection. On Mac, use the "Microsoft Remote Desktop" app. Enter your VPS IP address, username, and password to connect.
Install MT5
From a browser on the VPS, download MT5 from your broker's official website and run the installer. Log in using your trading account ID, password, and server name.
Place Your EA
Copy the EA file to the MQL5/Experts folder in MT5's data directory. If the file is .mq5 source code, compile it with MetaEditor. After restarting MT5, the EA will appear in the Navigator panel.
Enable Automated Trading
Turn on the "Algo Trading" button in the toolbar, then drag and drop your EA onto the target chart. Allow automated trading in the EA settings. When a smiley face icon appears in the top-right corner of the chart, the EA is live.
Confirm It Runs After Disconnecting
Close the remote connection, wait a while, then reconnect and check that the EA is still running and that the trade history has been updated. If so, your VPS setup is working correctly.
Daily Checks for Stable 24/7 Operation
Do not leave the VPS completely unattended. Check the following items at least once per day.
MT5 and Broker Connection Status
Confirm that the connection indicator in the bottom-right corner is green (receiving data). If it is red, log in again to restore the connection.
Automated Trading Is Enabled
Check both the "Algo Trading" toolbar button and the smiley face icon on the chart. These can revert to disabled after a VPS reboot.
Margin Level
Check that margin level has not dropped due to unexpected positions or floating losses. If it reaches a dangerous level, stop the EA and reassess.
VPS Resource Usage
Check that memory usage is not persistently high. Periodically restarting MT5 helps prevent memory leaks.
Logs and Errors
Check the "Experts" and "Journal" tabs in MT5 for any errors. Repeated order errors should be investigated and resolved.
🖥️ Compare VPS Options Side by Side
This site compares VPS services suited for EA trading by price, specs, and location. Free VPS eligibility requirements are also summarized.
View VPS Comparison →