A trading bot only works while MetaTrader 5 is running. If you run MT5 on your home PC, the bot stops the moment your computer sleeps, reboots, or loses internet. A VPS (Virtual Private Server) solves that by keeping MT5 online 24/5 in the cloud. Here's when you actually need one and how to choose.
What a VPS does for a trading bot
A VPS is a small, always-on computer in a data center that you control remotely. You install MT5 on it, attach your Expert Advisor, and it runs independently of your personal machine. Three concrete benefits:
- 24/5 uptime — the bot never misses a setup because your laptop closed.
- Stable connection — data centers have far more reliable internet than home Wi-Fi.
- Low latency to the broker — orders reach the server faster, reducing slippage.
For an aggressive, time-sensitive style like the 20-pip challenge, that last point matters more than people expect.
Do you actually need one?
| Situation | VPS needed? |
|---|---|
| Testing on demo for a few hours | No — your PC is fine |
| Running live, but only while you watch | Optional |
| Running a bot live, unattended, 24/5 | Yes |
| Trading from a laptop you close often | Yes |
If you're just testing on demo, skip the VPS. The moment you go live and want the bot to trade without you babysitting it, a VPS becomes essential.
What specs do you need?
MT5 with a single EA is light. You don't need a powerful (or expensive) server:
- CPU: 1–2 vCPU is plenty for one or two charts.
- RAM: 2 GB minimum, 4 GB comfortable.
- Storage: 20–40 GB SSD.
- OS: Windows (MT5 runs natively; most forex VPS providers offer Windows).
Paying for a high-end VPS does nothing for a single bot. Spend the money on location instead.
Latency: location beats horsepower
The number that matters is the ping between your VPS and your broker's trade server, not raw CPU. Lower latency means faster fills and less slippage — which directly protects your 20-pip target.
- Ask your broker where their MT5 servers are hosted (often London/LD4 or New York/NY4).
- Choose a VPS in the same city/data center region.
- A good forex VPS gets you single-digit-millisecond ping to major broker hubs.
A cheap VPS next to your broker will out-trade an expensive one on the other side of the world.
Forex VPS vs. general cloud VPS
- Forex-specialized VPS (e.g. providers that advertise broker proximity) — pre-optimized for MT5, located near broker hubs, usually Windows, often with MT5 pre-installed. Easiest path.
- General cloud VPS (AWS, Vultr, etc.) — cheaper and flexible, but you pick the region, install Windows + MT5 yourself, and verify latency manually.
For most traders, a forex-focused VPS is worth the small premium for the convenience.
Setting it up
- Buy a Windows VPS near your broker's server region.
- Connect via Remote Desktop (RDP).
- Install MetaTrader 5 and log in to your account.
- Install and attach your EA, enable Algo Trading.
- Disconnect RDP — the VPS keeps running. Reconnect anytime to check on it.
The bottom line
You don't need a VPS to test a bot, but you do need one to run it live and unattended. Keep the specs modest, prioritize a location close to your broker, and you'll get reliable 24/5 execution. Combine that with sound risk management and the boring infrastructure stops being the thing that costs you trades.