Your EA needs to be running when you're sleeping. Forex markets are open from Monday morning to Saturday morning, nonstop. If your home computer shuts down, restarts for an update, or loses internet for 30 seconds at the wrong moment, you can miss a stop loss and watch a manageable loss turn into a disaster.
A VPS — a virtual private server — is a remote Windows computer sitting in a data center that stays online 24/7. You install MetaTrader on it, deploy your EA, and let it run. You connect from your laptop whenever you want to check on things. Monthly cost: $5–30 depending on specs.
If you're running EAs seriously, a VPS isn't optional. It's infrastructure.
Why you can't just use your home PC
Three problems that will eventually bite you:
Uptime. Data centers guarantee 99.9%+ uptime with redundant power and network. Your home computer is realistically 95–98% — that gap translates to ~9 extra hours of downtime per year. During those hours, your EA is blind.
Latency. If you're running a scalping EA, the time it takes for your order to reach the broker matters. Home broadband: 50–200ms. A VPS near your broker's server: 1–5ms. That difference can be the entire profit margin of a scalp trade.
Stability. Windows updates reboot your machine at 3am. Your kid unplugs the router. The power flickers during a storm. A VPS in a data center doesn't have any of these problems.
Picking the right VPS
Location is everything. Your VPS should be geographically close to your broker's trading server. Most major brokers have servers in:
- New York (Equinix NY4/NY5)
- London (Equinix LD4)
- Tokyo
- Amsterdam / Frankfurt
Check with your broker where their server is located, then pick a VPS provider with a node in that city.
Specs guide:
| What you're running | RAM | CPU | Storage |
|---|---|---|---|
| 1–2 MT terminals | 2 GB | 2 cores | 40 GB SSD |
| 3–4 terminals | 4 GB | 2 cores | 60 GB SSD |
| 5+ terminals or heavy EAs | 8 GB+ | 4 cores | 80 GB+ SSD |
Always go with SSD storage (NVMe if available). MT4/MT5 generates a lot of log files and historical data — spinning hard drives slow everything down.
Operating system: Windows Server 2019 or 2022 (64-bit). MT5 requires 64-bit Windows as of 2025. MT4 works on both but there's no reason to pick 32-bit.
VPS providers worth considering
For traders with brokers in Asia-Pacific (Tokyo, Singapore, Hong Kong):
- Tencent Cloud — Lightweight server, 2-core 4GB from ~$10/month. Hong Kong and Singapore nodes with low latency. Good for beginners.
- Alibaba Cloud — ECS servers in 20+ regions worldwide. Solid reputation for stability. Hong Kong, Tokyo, Singapore nodes available.
- Vultr / DigitalOcean — Global nodes, straightforward pricing, good for traders with brokers in London or New York.
For traders with brokers in US/Europe:
- Vultr (NJ, Chicago, London, Frankfurt nodes)
- Contabo (cheap, Germany-based, good specs for the price)
- ForexVPS.net / BeeksFX — specialized forex VPS providers with nodes co-located at Equinix. Higher price but lowest possible latency.
Pro tip: Some brokers offer free or discounted VPS if you maintain a minimum balance or trading volume. Check your broker's website before buying separately.
Setup: from zero to running EA
Connect to your VPS
After purchasing, you'll get an IP address, username (usually Administrator), and password.
On Windows: press Win+R, type mstsc, enter the IP, and log in.
On Mac: download Microsoft Remote Desktop from the App Store.
First-time configuration
Before installing anything, lock down the basics:
- Disable auto-updates during trading hours. Go to Settings > Update & Security > Windows Update > Advanced Options. Set active hours to cover forex trading hours so Windows won't reboot mid-trade.
- Disable sleep and screensaver. Control Panel > Power Options > set sleep to "Never."
- Optimize for performance. Right-click This PC > Properties > Advanced > Performance Settings > "Adjust for best performance."
Install MetaTrader
- Open a browser on the VPS
- Download MT4/MT5 from your broker's website (use the broker-branded version — it comes pre-configured with their servers)
- Install to the default path. If running multiple instances, install each to a separate directory (
C:\MT4-Account1,C:\MT4-Account2, etc.) - Launch, find your broker's server, log in with your trading account
Enable auto-trading
Go to Tools > Options > Expert Advisors (MT4) or Algorithmic Trading (MT5). Check "Allow automated trading." If your EA calls external DLLs or web services, also check "Allow DLL imports" and "Allow WebRequest."
Deploy your EA
Easiest method: open MT4/MT5 on the VPS, go to File > Open Data Folder, navigate to MQL4/Experts (or MQL5/Experts), and drop your .ex4/.ex5 file there. If the EA comes with .set files, put those in the Presets folder. If it needs custom indicators, put them in the Indicators folder.
Right-click "Expert Advisors" in the Navigator panel, hit Refresh, then drag the EA onto your chart. Check parameters, click OK. Smiley face in the corner = running. For a full walkthrough, see our MT5 EA installation guide.
Keeping it running: maintenance that matters
Auto-start after reboot
If the VPS reboots (scheduled maintenance, unexpected crash), MT4/MT5 needs to come back up on its own.
Quick method: Press Win+R, type shell:startup, copy your MT4/MT5 shortcut into that folder.
Better method: Use Windows Task Scheduler — create a task triggered "At startup" that runs terminal.exe /portable. Check "Run with highest privileges." This is more reliable than the startup folder, especially after unexpected restarts.
Auto-login
If Windows is stuck on the login screen after reboot, nothing in the startup folder will run. Fix: press Win+R, type netplwiz, uncheck "Users must enter a username and password," enter your password to confirm.
Monitoring
We use a free watchdog tool that monitors the MT4/MT5 process and auto-restarts it if it crashes. MT4BAR is one option. Some traders use a simple PowerShell script that checks every 60 seconds if terminal64.exe is running and relaunches it if not.
Weekly maintenance
- Restart the VPS every weekend while markets are closed. Clears memory leaks and temporary files.
- Keep 20%+ free RAM. If you're consistently over 80% usage, upgrade or reduce the number of terminals.
- Clean old logs. MT4/MT5 log files grow forever. Delete anything older than 30 days from the
logsfolder. - Security basics. Keep Windows Firewall on. Change the default Remote Desktop port from 3389 to something less obvious. Use a strong password. Don't browse random websites on your trading VPS.
Saving money
- Annual billing saves 20–40% vs monthly on most providers
- Start small — you can always upgrade. Going from 2GB to 4GB is a one-click operation on most VPS platforms
- New user discounts — cloud providers almost always have first-purchase deals
- Broker VPS deals — some brokers give free VPS with minimum deposit or trading volume requirements
Bottom line
VPS setup takes about 30 minutes. Monthly cost is less than one losing trade. And it solves the three problems that kill EA profitability: downtime, latency, and instability.
Every EA in the FXTool marketplace runs on VPS in our own testing — what works on your home computer should work identically on a VPS. If you're still running EAs on your laptop, this is the upgrade that actually matters.
About the author: The FXTool team builds and tests MetaTrader trading tools daily. We run every EA we sell on live accounts and publish the results. This guide reflects what we've learned from building 50+ EAs and working with thousands of retail traders.
Forex trading involves significant risk and may result in total loss of capital. This article is for educational purposes only and is not investment advice. Understand the risks and consider your financial situation before trading.