Forex VPS for MT5: run Expert Advisors 24/7 in Thailand
Size a Windows VPS, install MetaTrader 5, enable Algo Trading, and measure broker ping
The XVer team 5 min read 30 min to do Beginner
Also in ภาษาไทย
On this page
- Why traders run EAs on a VPS
- Recommended VPS specs for MT5
Windows Server vs
Linux with Wine
- 1. Create a
Windows VPS
- 2. Connect via RDP and lock down port 3389
- 3. Install MetaTrader 5
- 4. Sign in to your trading account
- 5. Attach your EA and enable Algo Trading
- 6. Disconnect properly so EAs stay online
- 7. Handle
Windows Updates and reboots
- Measure broker ping directly inside MT5
- Troubleshooting quick reference
- Frequently asked questions
A Forex VPS is an always-on Windows Server that keeps MetaTrader 5 and your Expert Advisors running after you shut down your computer at home. Power outages or home Wi-Fi drops do not interrupt open trades, and you can check charts anytime through Remote Desktop.
- Your computer or phone
- Remote Desktop
Windows VPS running MT5 and EA
- Broker trading server
Why traders run EAs on a VPS#
Expert Advisors only execute while MT5 stays open and online. Running MT5 on a home PC exposes your strategy to home internet drops, power cuts, and unexpected sleep or restarts.
| Home computer | Forex VPS | |
|---|---|---|
| Home power or internet outage | EA stops | EA keeps running |
| Closing laptop lid or traveling | EA stops | EA keeps running |
| Remote monitoring | Requires third-party remote apps | Built-in Remote Desktop on PC and mobile |
| Cost model | Electricity and wear on home hardware | Flat hourly or monthly server rate |
Recommended VPS specs for MT5#
MetaQuotes notes on its MT5 installation page (opens in a new tab) that hardware needs depend on active charts, symbols, and Expert Advisors. Microsoft recommends 4 GB RAM (opens in a new tab) for Windows Server 2025 Desktop Experience, making 4 GB the safest starting floor.
| Workload | Recommended starting plan |
|---|---|
| 1 MT5 terminal, 1-2 EAs, a few charts | s-2vcpu-4gb |
| Multiple MT5 terminals or accounts, many charts | s-4vcpu-8gb |
| Strategy Tester backtesting on the same server | s-8vcpu-16gb |
Windows Server vs
Linux with Wine#
MT5 is a native Windows application. MetaQuotes provides a Linux Wine setup script (opens in a new tab), but categorizes it for advanced users.
Windows Server
- Installs MT5 identically to a desktop PC
- Matches broker and EA vendor instructions
- Ready for Remote Desktop out of the box
- Requires your own valid
Windows Server license
Linux with Wine
- No
Windows license cost
- Requires installing a desktop environment and VNC/RDP manually
- Some DLL-dependent EAs behave differently under Wine
- Suited to experienced
Linux users only
1. Create a
Windows VPS#
Follow our Windows VPS setup guide with annotated screenshots and pick s-2vcpu-4gb (or larger from the table above).
Hourly billing lets you test broker latency for a single day before committing to a full month.
2. Connect via RDP and lock down port 3389#
Sign in following our Remote Desktop guide, then restrict TCP port 3389 in the Firewall tab to your own IP address only.
3. Install MetaTrader 5#
- Open the browser inside your VPS and download the MT5 installer directly from your broker so its trade servers are preloaded.
- If your broker does not offer a branded installer, download from MetaQuotes (opens in a new tab).
- Run the installer through to completion until MT5 opens.
4. Sign in to your trading account#
- Open File and click Login to Trade Account.
- Enter your Login, Password, and broker Server.
- Check Save password so MT5 reconnects automatically on restart, then click OK.
Demo and live accounts usually sit on different broker servers. Confirm live ticks move in Market Watch and the bottom-right connection bar shows active kilobytes instead of No connection.
5. Attach your EA and enable Algo Trading#
- Click File, then Open Data Folder, open
MQL5\Experts, and paste your.ex5file. - Right-click inside Navigator in MT5 and select Refresh.
- Open your target symbol chart and drag the EA onto the chart.
- Under Common, enable Allow Algo Trading, configure your Inputs, and click OK.
- Make sure the Algo Trading toolbar button is turned on.
6. Disconnect properly so EAs stay online#
Close window (X) or Disconnect
Your Windows session stays logged in, and MT5 plus all EAs keep trading continuously.
Sign out
Windows closes all user applications, stopping MT5 and every EA until you log back in.
7. Handle
Windows Updates and reboots#
Windows may reboot outside Active hours (opens in a new tab). After a reboot, MT5 does not start until a user signs in.
- Set Active hours in Settings,
Windows Update, Advanced options to cover your active trading window.
- Press Win + R, run
shell:startup, and place an MT5 shortcut inside so MT5 launches automatically at login. - Apply updates and reboot manually over the weekend when markets close, then reconnect to verify MT5 and Algo Trading are active.
Measure broker ping directly inside MT5#
The latency that matters for order execution is VPS to broker trade server, not home PC to VPS. XVer servers sit in Bangkok, Thailand; broker servers may sit in Singapore, Tokyo, London, or New York.
- Check the millisecond ping indicator at the bottom right of MT5.
- Click it to view all broker access servers with individual ping times, or click Rescan servers.
- Compare those numbers against MT5 on your home PC at several times of day.
Troubleshooting quick reference#
| Symptom | Fix |
|---|---|
No connection or Invalid account |
Verify account number, password, and live vs demo server name |
| EA missing in Navigator | Place .ex5 inside MQL5\Experts and click Refresh |
| EA on chart but places no trades | Enable both toolbar Algo Trading and EA Common Allow Algo Trading, then inspect Experts log |
| EA stopped after closing RDP | Previous session used Sign out; reopen MT5 and use X/Disconnect next time |
| MT5 sluggish or frozen | Check RAM in Task Manager, close unused charts, or upgrade plan |
| Cannot connect via RDP | Follow our RDP troubleshooting guide |
Frequently asked questions#
Do EAs keep trading when my home computer is off?
Yes, because MT5 runs on the VPS. Close Remote Desktop with the window X button rather than Sign out.
Can a Thailand VPS connect to international brokers?
Yes. Check exact latency inside MT5's status bar and compare with your home connection before committing.
Can I run MetaTrader 4 instead of MT5?
Yes. MT4 follows the exact same Windows VPS and RDP workflow using your broker's MT4 installer.
Can I run multiple MT5 accounts on one VPS?
Yes. Install each MT5 instance into its own folder and ensure you have enough RAM for all open terminals.
Compare Windows VPS in Thailand, check hourly Cloud Server pricing, or start with our Windows VPS creation walkthrough.