Summary: Deploy MT4 on VPS to keep EA running 24/7. This guide covers VPS selection, remote desktop connection, MT4 installation, and security best practices.
Step 1: Choose a Suitable Forex VPS Provider
Select a VPS with low latency to your broker's server (preferably same city). Recommended specs: 1-2 CPU cores, 2GB RAM, 20GB SSD. Many brokers offer free VPS if you trade a minimum volume monthly. Screenshot: VPS plan comparison table.
Step 2: Receive VPS Login Credentials
After purchase, the provider sends an email with IP address, username (usually Administrator), and password. Save this information securely. Screenshot: example email from VPS provider.
Step 3: Connect to VPS via Remote Desktop
On Windows, press Win+R, type `mstsc` and press Enter. Enter the VPS IP address, then click "Connect". Input username and password when prompted. Screenshot: Remote Desktop Connection window with IP filled.
Step 4: Install MT4/MT5 on the VPS
Once connected to the VPS desktop, open a browser, download the trading platform from your broker's website, and install it normally. Or copy your existing MT4 folder from local PC to VPS via Remote Desktop file transfer. Screenshot: MT4 installation wizard on VPS desktop.
Step 5: Log in to Your Trading Account on VPS
Open MT4 on VPS, go to File → Login to Trade Account, enter your account number, password, and choose the correct server. Ensure you see "connection established" at bottom right. Screenshot: MT4 login window.
Step 6: Attach and Enable EA on VPS
Attach your EA to the desired chart(s). Go to Tools → Options → Expert Advisors tab: enable "Allow automated trading" and "Allow DLL imports" if needed. Also check the "Alerts" button on the toolbar (it should say "Expert Advisors" in green). Screenshot: EA settings and green EA button on MT4 toolbar.
Step 7: Keep VPS Running and Secure
Do not log off from VPS by closing the remote desktop window. Instead, click the "X" button; the session stays active. Set a complex password for your VPS user account. Enable Windows Firewall and allow only MT4 ports (usually 443 and broker-specific ports). Screenshot: firewall inbound rules for MT4.
Reference: MetaQuotes Help Desk - VPS Recommendations; Broker-specific VPS guides.