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
  1. Why traders run EAs on a VPS
  2. Recommended VPS specs for MT5
  3. Windows Server vs Linux with Wine
  4. 1. Create a Windows VPS
  5. 2. Connect via RDP and lock down port 3389
  6. 3. Install MetaTrader 5
  7. 4. Sign in to your trading account
  8. 5. Attach your EA and enable Algo Trading
  9. 6. Disconnect properly so EAs stay online
  10. 7. Handle Windows Updates and reboots
  11. Measure broker ping directly inside MT5
  12. Troubleshooting quick reference
  13. 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
Orders travel from your VPS straight to your broker's trade server while your computer only views the screen

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

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
PlanNVMe diskBandwidthPer hourPer month
2 vCPU · 4 GB40 GB4 TB฿0.70/hr฿419/mo
4 vCPU · 8 GB80 GB10 TB฿1.37/hr฿819/mo
8 vCPU · 16 GB100 GB14 TB฿2.60/hr฿1,559/mo

Prices when this page was built

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.

฿16.80

24 hours

2 vCPU · 4 GB

฿419.00

730 hours

2 vCPU · 4 GB

Charged per hour the server exists, never above the monthly price in a calendar 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#

  1. Open the browser inside your VPS and download the MT5 installer directly from your broker so its trade servers are preloaded.
  2. If your broker does not offer a branded installer, download from MetaQuotes (opens in a new tab).
  3. Run the installer through to completion until MT5 opens.

4. Sign in to your trading account#

  1. Open File and click Login to Trade Account.
  2. Enter your Login, Password, and broker Server.
  3. 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#

  1. Click File, then Open Data Folder, open MQL5\Experts, and paste your .ex5 file.
  2. Right-click inside Navigator in MT5 and select Refresh.
  3. Open your target symbol chart and drag the EA onto the chart.
  4. Under Common, enable Allow Algo Trading, configure your Inputs, and click OK.
  5. 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.

  1. Set Active hours in Settings, Windows Update, Advanced options to cover your active trading window.
  2. Press Win + R, run shell:startup, and place an MT5 shortcut inside so MT5 launches automatically at login.
  3. 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.

  1. Check the millisecond ping indicator at the bottom right of MT5.
  2. Click it to view all broker access servers with individual ping times, or click Rescan servers.
  3. 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.

Follow the guide on your own server

Create a Cloud Server with Ubuntu, Debian or Windows Server, billed by the hour in Thai baht. Support answers 24/7 in Thai and English.