Your automated trading strategy is only as reliable as the machine running it. If your home PC shuts down — power outage, Windows update, cat walks on the keyboard — your EA stops and signals go unexecuted.
A VPS (Virtual Private Server) solves this. It's a computer in a data center that runs 24/7, specifically for keeping your MT5 and EA alive around the clock.
Why You Need a VPS
Your EA needs to be running whenever the market is open — that's 24 hours a day, 5 days a week. Running MT5 on your personal computer means:
- Power outages stop your EA
- Internet disconnections interrupt signal polling
- Windows updates can restart your PC
- Your PC needs to stay on all night, every night
- Latency depends on your home internet quality and distance to your broker
A VPS eliminates all of these problems. It runs in a data center with: - 99.9%+ uptime guarantees - Redundant power and internet - Low latency to broker servers - No interference from your daily computer use
Choosing a VPS Provider
Trading-Specific VPS Providers
These specialize in hosting trading platforms:
| Provider | Starting Price | Locations | Notable |
|---|---|---|---|
| ForexVPS | $25/mo | NY, London, Amsterdam | Optimized for MT4/MT5 |
| BeeksFX | $25/mo | NY, London, Tokyo | Ultra-low latency |
| TradingFX VPS | $15/mo | NY, London | Budget-friendly |
Pros: Pre-installed MT5, trading-optimized networks, support understands trading Cons: More expensive, less flexible
General Cloud Providers
Major cloud platforms with Windows VPS options:
| Provider | Starting Price | Locations | Notable |
|---|---|---|---|
| Amazon Lightsail | $12/mo | Worldwide | Reliable, many regions |
| Vultr | $11/mo | Worldwide | Good value |
| Hetzner | $8/mo | EU | Cheapest option |
| DigitalOcean | $12/mo | Worldwide | Developer-friendly |
Pros: Cheaper, more locations, full control Cons: You install and configure MT5 yourself
What Location to Choose
Pick a server location close to your broker's trading servers:
- New York — Most US and international forex brokers
- London — UK and EU brokers (IC Markets, Pepperstone)
- Tokyo — Japanese brokers, good for JPY pairs
- Amsterdam — Some EU brokers
Closer location = lower latency = faster execution. For most traders, New York or London covers the majority of brokers.
Setting Up Your VPS
Step 1: Create the VPS
Choose a Windows Server instance with at least: - 1 CPU core (2 cores if running multiple MT5 instances) - 2 GB RAM (1 GB minimum, 2 GB recommended) - 30 GB storage (MT5 + data doesn't need much)
Step 2: Connect via Remote Desktop
Use Remote Desktop Connection (built into Windows) or any RDP client: - Computer: Your VPS's IP address - Username: Administrator (or your configured username) - Password: Provided by your VPS host
Step 3: Install MetaTrader 5
- Open a browser on the VPS
- Download MT5 from your broker's website
- Install and log in to your trading account
- Verify that you can see quotes and charts
Step 4: Install Your EA
- In MT5, go to File → Open Data Folder → MQL5 → Experts
- Copy your EA file (.ex5) into this folder
- Restart MT5 or right-click in Navigator → Refresh
- Drag the EA onto any chart
- Configure inputs (server URL, license key, etc.)
- Enable AutoTrading (green button in the toolbar)
Step 5: Configure MT5 for Reliability
Allow WebRequest: Tools → Options → Expert Advisors → check "Allow WebRequest for listed URL" and add your signal server URL.
Disable sleep: Windows power settings → set "Turn off display" and "Put computer to sleep" to Never.
Auto-login: Set MT5 to save your login credentials so it reconnects after any restart.
Startup program: Add MT5 to Windows Startup folder so it launches automatically if the VPS reboots.
Keeping Everything Running
Monitoring
Check your VPS at least once a day: - Is MT5 connected? (check the connection status bar at bottom) - Is the EA loaded and running? (check the Experts tab for logs) - Are signals being received? (check recent trade history)
If you have Telegram notifications enabled on your EA, you'll automatically know when trades execute — silence means either no signals or a problem.
Handling Disconnections
MT5 reconnects to the broker automatically after brief disconnections. If the connection stays down: 1. Check if the VPS itself is running (try RDP) 2. Check if the broker's servers are up (broker status page) 3. Restart MT5 if needed 4. Verify the EA reloads and AutoTrading re-enables
Windows Updates
Windows updates can restart your VPS without warning. To prevent this: - Set Windows Update to download but not auto-install - Schedule updates for weekends when markets are closed - Or disable automatic restarts entirely (use Group Policy Editor)
Broker Server Maintenance
Brokers occasionally restart their servers (usually on weekends). MT5 reconnects automatically, but verify on Monday morning that everything is connected.
Cost Optimization
Do You Really Need a VPS?
If you're running a swing strategy that checks signals once per hour, your home PC might be sufficient. A VPS is essential when: - Your strategy requires 24/5 uptime - You need low latency (scalping or day trading) - Your home internet is unreliable - You can't keep your PC running overnight
Saving Money
- Start with the smallest instance and upgrade only if needed
- General cloud providers (Vultr, Lightsail) are cheaper than trading-specific ones
- Pay annually for 20-30% discounts
- Share a VPS between your MT5 and other lightweight tasks
FAQ
Can I run multiple MT5 instances on one VPS? Yes, but each instance needs its own installation folder and resources. With 2 GB RAM, you can comfortably run 2 MT5 instances. For 3+, upgrade to 4 GB.
Does the VPS location affect my trading? Yes — for execution speed. A VPS in New York with a New York-based broker gives ~1ms latency. A VPS in Tokyo with the same broker might have 200ms. For scalping, location matters. For swing trading, it's less important.
What if my VPS provider has an outage? This is rare (99.9% uptime = ~9 hours downtime per year), but it happens. Your signal server queues signals, so when the EA reconnects, it picks up pending signals. For critical strategies, consider a backup VPS.
Can I use a Mac? You need Windows for MT5. If you use a Mac locally, a Windows VPS is the standard solution — you connect via Microsoft Remote Desktop (free on Mac App Store).
Get your EA running 24/5 on a VPS, then connect it to TradingView via iNakaTrader. Your strategy never sleeps.
Risk Disclaimer: Trading forex and other financial instruments involves substantial risk of loss and is not suitable for all investors. Past performance does not guarantee future results. Only trade with capital you can afford to lose. iNakaTrader provides signal execution tools, not financial advice.