I remember the first time I tried to run an EA on a VPS. I thought it would be as simple as installing MT4, dragging the EA in, and walking away. Three days later, I came back to find the terminal had crashed overnight because Windows Update decided to reboot the server, and my EA never restarted. That's when I learned the hard way that "running 24/7" actually requires a few extra steps that nobody tells you about.
Step 1: Connecting to Your VPS (and the File Transfer Trick)
Most VPS providers will give you an IP address, a username, and a password. On Windows, just search for "Remote Desktop Connection" in the Start menu. Enter the IP and log in.
But here's the thing that tripped me up for a while: getting your EA files onto the VPS. You could email them to yourself, but that's clunky. The official Exness VPS setup guide actually mentions a cleaner method: in the Remote Desktop Connection window, click "Show Options," go to the "Local Resources" tab, and under "Local devices and resources," click "More." Then check the drive where your EA files are stored on your local computer. Once you log in, that drive will show up in the VPS's "This PC" as a mapped drive. Just copy and paste your files over—no USB drives, no email attachments.
Step 2: Installing MT4 and Placing the EA
Once you're logged into the VPS, download your broker's MT4 installer directly from their website using the browser inside the VPS. Install it, log into your trading account, and then:
If your EA uses any DLL files, those go into the MQL4 > Libraries folder. I've seen so many people toss DLLs into the Experts folder and wonder why nothing works.
Step 3: Activating Auto-Trading
Restart MT4 on the VPS, then go to Tools > Options > Expert Advisors. Check "Allow automated trading" and, if your EA requires it, "Allow DLL imports." At this point, drag your EA onto a chart from the Navigator window. You should see a smiley face in the top-right corner of the chart—that means it's alive.
Step 4: The Auto-Restart Setup (This One's Critical)
This is where I got burned. If the VPS reboots for any reason—Windows updates, power maintenance, whatever—MT4 won't automatically open unless you tell it to. The fix is simple: put a shortcut to MT4 in the Windows Startup folder. On the VPS, open the Start menu, type "shell:startup" and hit Enter. That opens the Startup folder. Right-click, create a shortcut, and point it to your MT4 terminal.exe file. Now, every time the VPS restarts, MT4 will launch automatically.
Step 5: Weekly Maintenance Routine
Here's something I started doing after a few months of trial and error: every Friday after the market closes, I log into the VPS, close MT4, and restart the entire VPS from the Start menu. Then I reopen MT4 and re-attach the EA to the chart. It sounds excessive, but I noticed that after running for a week straight, MT4's performance would degrade slightly—charts would lag, the EA would miss ticks. A weekly reboot clears out the cobwebs. It's not documented anywhere, but it's made a noticeable difference in stability.
Reference: Exness Help Center. "Exness VPS: Setup Guide." get.exness.help.
Reference: Weltrade Help Center. "How to set up Metatrader VPS?" support.weltrade.com.
本文首发于FXEAR.com,原创内容,未经授权禁止转载。