How to Run Your MT5 EA 24/7 (VPS vs Always-On PC — Full Comparison)
Contents
- Why 24/7 Operation Matters
- Option 1: Always-On Home PC
- Pros
- Cons
- How to minimize issues if you go this route
- Option 2: VPS (Virtual Private Server)
- Pros
- Cons
- What specs do you need?
- Recommended VPS providers for EA trading
- Latency: Why It Matters for Gold EAs
- Step-by-Step: Setting Up MT5 on a VPS
- Our Recommendation
- Download a Free Gold EA to Test
How to Run Your MT5 EA 24/7 (VPS vs Always-On PC)
One of the first questions new EA traders ask: do I need a VPS, or can I just leave my PC on?
The short answer: for serious EA trading, a VPS is strongly recommended. But the full picture is more nuanced. This guide breaks down both options so you can make the right call for your situation.
Why 24/7 Operation Matters
MT5 Expert Advisors only execute when:
- The MetaTrader 5 terminal is running
- The terminal is connected to your broker's server
- Auto-trading is enabled (the "Auto Trading" button is green)
If your PC sleeps, loses internet, or restarts during a Windows update, your EA goes offline. That means:
- Missed entries: The EA can't open a trade it would have taken
- Unmanaged exits: If you have an open position with a floating loss, the EA can't move the stop or close on signal
- Emergency situations: A major news spike while you're sleeping and your EA is offline can be costly
For XAUUSD H1 EAs, missing a single trade isn't catastrophic — but for higher-frequency or scalping EAs, even 30 minutes of downtime can meaningfully affect results.
Option 1: Always-On Home PC
Pros
- Zero extra cost — you already own the hardware
- Easy setup — just install MT5 and let it run
- Full control — you can walk over and check it any time
Cons
- Power outages — any blackout takes you offline
- Internet outages — home ISPs are less reliable than data center connections
- Windows updates — automatic restarts are a serious problem for EA traders
- Electricity cost — running a desktop 24/7 costs $30–80/month in electricity
- Latency — your home connection to your broker's server may be 50–200ms; a co-located VPS is typically 1–10ms
How to minimize issues if you go this route
- Disable automatic Windows updates (or set them to install only during manual checks)
- Get a UPS (uninterruptible power supply) — $50–100, protects against short outages
- Use a wired ethernet connection, not WiFi
- Set MT5 to auto-start on Windows login
Verdict: Workable for casual EA traders with low-frequency strategies. Not recommended for EAs that trade multiple times per day.
Option 2: VPS (Virtual Private Server)
A VPS is a server in a data center that runs 24/7 with 99.9%+ uptime. You connect to it via Remote Desktop (RDP) and install MT5 on it just like a local PC.
Pros
- Guaranteed uptime — data centers have backup power, redundant internet
- Low latency — choose a VPS close to your broker's server (often under 5ms)
- No electricity cost on your end
- Multiple EAs — run many EAs on different accounts without taxing your home PC
Cons
- Monthly cost — $5–25/month depending on provider and specs
- Setup time — first-time setup takes 30–60 minutes
- Learning curve — RDP feels unfamiliar at first
What specs do you need?
For MT5 EA trading (1–5 EAs):
- CPU: 1–2 vCPUs (sufficient)
- RAM: 2GB minimum, 4GB recommended
- Storage: 30GB SSD
- OS: Windows Server 2019/2022 (MT5 runs on Windows natively)
- Network: 100Mbps+ with low ping to your broker
Recommended VPS providers for EA trading
| Provider | Monthly Cost | Best For |
|---|---|---|
| BeeksFX | $30–50 | Professional EA traders, broker co-location |
| Vultr (Windows) | $12–24 | Budget-conscious, technical users |
| Contabo | $8–15 | Low cost, Europe/Asia server locations |
| Broker-provided VPS | Free* | XM, Exness offer free VPS with volume |
*Broker VPS is free if your monthly trading volume meets their threshold (varies by broker).
Latency: Why It Matters for Gold EAs
For H1 trend-following EAs on XAUUSD, latency below 50ms is fine — you're not competing in a millisecond race.
For scalping EAs or EAs with tight MaxSpread filters, lower latency means:
- Orders fill closer to the intended price
- The spread check happens on more current data
- Less slippage on entry and exit
If you trade with XM: choose a VPS in a data center near New York (XM's main server region). If you trade with Exness: their servers are in London and Amsterdam.
Step-by-Step: Setting Up MT5 on a VPS
- Purchase a Windows VPS from any provider above
- Connect via Remote Desktop (built into Windows; Mac users: use Microsoft Remote Desktop app)
- Download MT5 from your broker's website on the VPS
- Log in to your trading account in MT5
- Copy your EA files to the VPS (use RDP file transfer or a shared folder)
- Compile the EA in MetaEditor if needed
- Attach the EA to the chart and enable Auto Trading
- Disconnect — the VPS keeps running
You don't need to stay connected. Log back in periodically to check performance.
Our Recommendation
For gold EA trading with any strategy on this site:
- Testing phase (demo/first 2 weeks live): your home PC is fine
- Ongoing live trading: use a VPS
The $10–20/month cost is small relative to the risk of losing a position because your PC restarted at 3am.
See our VPS guide for MT5 EA traders for detailed setup instructions and a comparison of broker-provided vs independent VPS options.
Download a Free Gold EA to Test
Ready to run an EA 24/7? Start with the GOLD EMA ATR EA — a free XAUUSD H1 trend-following EA with a 5-year backtest: PF 1.45, max DD 7.2%, 680+ trades. Free to download after opening an account with a supported broker.
Related
2026-05-22
Best Free XAUUSD EA for MT5 in 2026 | Backtest-Verified Gold Trading Bots
2026-05-22
MT5 EA Not Making Money? 7 Reasons Why (and How to Fix Each)
2026-05-22
Best Free EURUSD EA for MT5 in 2026 | Backtest-Verified Forex Bots
2026-05-22
Best Trading Hours for XAUUSD EA — When Gold Moves Most
5-Day Email Course (Free)
Get one email a day covering the essentials of FX automated trading, how to read backtests correctly, and tips for choosing a broker.
* Privacy strictly protected. You can unsubscribe at any time.