Why a Windows VPS for MetaTrader and trading robots
MetaTrader 4 and MetaTrader 5 are desktop programs for Windows. A robot (an Expert Advisor) only works while the terminal is open and connected to the broker's server: the moment the computer goes to sleep, restarts for an update or loses its connection, the robot stops with it.
On a personal computer, that means leaving it on day and night, behind a home router and a power socket that were never meant for the job. A Windows VPS moves the terminal into a data centre:
- the session stays open when you close the Remote Desktop window: the terminal, its charts and its robots keep running, and you find them exactly as you left them when you reconnect;
- you reach it from anywhere, from a PC, a Mac, a tablet or a phone, with nothing to install but a Remote Desktop client;
- the IPv4 address is fixed and dedicated: useful when a service only accepts connections from a known address;
- the machine is yours alone: a full KVM virtual machine, with administrator access, on which you install whichever terminals, indicators and tools you want.
Our Windows VPS come with Windows Server, licence included, not with Windows 11. MetaTrader 4 and 5 install on it just as they do on a PC, with the installer your broker provides. For any other program, check with its publisher that it accepts Windows Server: the guide Windows 11 VPS explains what separates the two editions.
Latency: what a server in France changes, and what it does not
Two distances matter, and they do not have the same effect:
- from you to the VPS: this decides how responsive the Remote Desktop display feels. It has no effect on orders, which leave from the VPS and not from your computer;
- from the VPS to your broker's server: this is the time an order takes to arrive. Our servers are in France: the path is short to servers located in Western Europe, and stays long to North America or Asia, whoever the host is.
Do not rely on a promise; measure it. In MetaTrader, click the connection indicator at the bottom right of the terminal: it lists your broker's access points with their response time in milliseconds. Compare that figure with the one you get from home. Since the plan is monthly with no commitment, a trial on the first tier is enough to settle the question.
Bandwidth, on the other hand, is not a concern: a terminal exchanges very little data, and the VPS's 1 Gb/s port is mostly used for downloads and Windows updates. What drives the choice of tier is memory, then the number of cores if you run backtests: the criteria are set out in the best Windows VPS in France.
Getting started: from the order to a robot that restarts on its own
- Pick the tier from the plans on this page, based on the number of terminals, and order from the customer area. On delivery, the IP address and the username are on the VPS page.
- Connect over Remote Desktop, change the delivery password and restrict port 3389 to your own IP addresses. The guide connecting to a Windows VPS over Remote Desktop gives the steps for each device and the security settings.
- Install MetaTrader with your broker's installer, from the browser on the VPS. For several terminals, install each one in its own folder; started with the
/portable switch, a terminal keeps its data in that folder, which makes copies simpler.
- Allow the robots to trade: the Algo Trading button in MetaTrader 5, or AutoTrading in MetaTrader 4, must be on, and each Expert Advisor attached to its chart.
- Plan for the restart. After Windows restarts, a desktop program only comes back if a session opens. Put a shortcut to the terminal in the startup folder (
shell:startup in the Run box) and turn on automatic sign-in, for instance with Microsoft's Autologon tool (Sysinternals). The password is then stored on the machine: one more reason to close port 3389 to everyone but you.
- Choose when updates happen: let Windows Update install security fixes, but schedule the restarts for a time when your robots can stop.
- Leave without closing the session: close the Remote Desktop window with its X button. Sign out, in the Start menu, would close the session and the terminal with it.
To check at a glance that everything is running, open PowerShell on the VPS. The first command gives the date Windows last started, the second lists the running terminals (terminal for MetaTrader 4, terminal64 for MetaTrader 5), with their start time and the memory they use:
(Get-CimInstance Win32_OperatingSystem).LastBootUpTime
Get-Process terminal, terminal64 -ErrorAction SilentlyContinue | Select-Object Name, StartTime, @{n='MB';e={[int]($_.WorkingSet64/1MB)}}
Once the VPS is set up, take a snapshot from the customer area, and keep a copy of each terminal's data folder off the VPS (File menu, Open Data Folder): robots, settings and profiles all live there. A snapshot sits on the same infrastructure as the VPS; it is not a backup.
When this Windows VPS is not the right choice
- Your strategy comes down to the millisecond: it calls for a machine in the same data centre as the servers of the broker or the trading venue. We host in France and guarantee no response time to any third party.
- Your broker's servers are far from Europe: latency then depends on that distance, not on us.
- Your robot is a Python script or a program that runs on Linux: a Ryzen VPS on Linux avoids the Windows licence and leaves more memory to the program. The guide Linux VPS or Windows VPS helps you decide.
- Your software requires Windows 10 or 11 and refuses server editions: our VPS come with Windows Server.
- You want someone to administer Windows for you: a VPS is a server you manage yourself. We provide the machine, the access and the network; updates, the firewall and your terminals remain your job.
No machine stays on without a single interruption: Windows restarts for its updates, and a maintenance operation can happen. So know what depends on the terminal. Pending orders, stops and limits recorded with the broker stay there when the terminal is down; a trailing stop and the logic of an Expert Advisor, on the other hand, only work while the terminal is open.
Finally, trading carries a high risk of losing your capital: CloudFive provides the machine and the network, with no advice of any kind on investments, brokers or strategies, and a VPS changes nothing about a robot's results.