Home > EA & MT5 Knowledge Base > VPS Setup and 24/7 MT5 Operations

VPSOperationsBeginner

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.

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.

SpecMinimumRecommended
Memory (RAM)2 GB4 GB or more
CPU1 core2 cores or more
Storage30 GB SSD50 GB SSD or more
Uptime Guarantee (SLA)99.9%99.99%
LocationSame region as your broker's trading serverNear London or New York
OSWindows ServerWindows Server 2019 or later
Insufficient RAM causes instability during backtesting and when running multiple charts simultaneously. If you plan to run long-period backtests on the VPS, 4 GB or more is strongly recommended.

Free VPS vs. Commercial VPS

CriteriaBroker-Provided Free VPSCommercial VPS
CostFree (conditions apply — trading volume etc.)Approx. $7–20/month
EligibilityMinimum balance, volume, or lot requirementsNo conditions
BrokerLocked to the providing brokerWorks with any broker
SpecsOften minimal configurationChoose the plan that fits your needs
Best forTraders who already meet that broker's volume requirementsTraders who want flexibility across multiple brokers
Brokers such as HFM, XMTrading, and Exness offer a free VPS to clients who meet their eligibility criteria. A sensible approach is to check whether you qualify for your broker's free VPS first, and only consider a commercial VPS if you do not qualify or want to use multiple brokers.

MT5 Setup Steps

Step 1

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.

Step 2

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.

Step 3

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.

Step 4

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.

Step 5

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.

1

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.

2

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.

3

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.

4

VPS Resource Usage

Check that memory usage is not persistently high. Periodically restarting MT5 helps prevent memory leaks.

5

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 →

Frequently Asked Questions

Q: Can I just run the EA on my home PC?

It is possible, but your PC must stay on 24 hours a day — and any power outage, Windows auto-update reboot, or internet drop will halt the EA immediately. If it stops while holding a position with a floating loss, the stop-loss will not trigger. A VPS is strongly recommended for stable operation.

Q: Can I use a VPS from a Mac?

Yes. The VPS itself runs Windows, but you can connect to it from a Mac using the "Microsoft Remote Desktop" app. The VPS displays as a Windows desktop on your Mac while you are connected; when you disconnect, MT5 on the VPS continues running.

Q: What specs does the VPS need?

For running one to three MT5 instances, 4 GB RAM and 2 CPU cores provide comfortable headroom. 2 GB is the bare minimum. If you also plan to run long-period backtests on the VPS, the more RAM the better.

Q: Should I choose the free VPS or a paid commercial VPS?

If you can meet your broker's free VPS eligibility requirements (balance, volume, etc.), the free VPS is perfectly sufficient. If you cannot qualify, or if you want to use multiple brokers freely, a monthly commercial VPS offers greater flexibility.

Q: Will the EA restart automatically if the VPS reboots?

If you configure MT5 to launch at Windows startup and set it to log in automatically, MT5 will restart after a reboot. However, the "Algo Trading" setting may revert to off, so always verify that the EA is running after any restart.