A VPS (Virtual Private Server) is a virtual computer that stays connected to the internet around the clock and that you access remotely. If you run MT5 on it, your terminal stays open even when your own computer is off. This guide explains when you need a VPS and how to choose one.
What does a VPS do?
MT5 and the Expert Advisors (EAs) running on it only work while the terminal is open and connected to the internet. A power cut, a dropped connection, a restart after an update or simply shutting down your computer at home or in the office stops the EA. A VPS lets you run on a server that is kept on 24/7 to reduce that risk.
When do you need one?
- When an EA or another automated system has to run 24/7.
- When you run several MT5 terminals at the same time.
- When you use systems such as trade copying that depend on the terminal staying open.
- When you want to lower connection latency by running closer to the broker's server.
If you only trade manually and do not use an EA, you usually do not need a VPS.
What to look for
| Criterion | General guidance |
|---|---|
| Operating system | MT5 is built for Windows; a Windows VPS causes the fewest problems. |
| RAM | Usually at least 2 GB for a single terminal. Each extra terminal uses roughly 0.5-1 GB more, depending on the number of open charts, symbols and indicators. |
| CPU (vCPU) | 1-2 vCPU is often enough for a single terminal; increase it for several terminals. |
| Disk | Prefer SSD. 30-40 GB is generally enough for a single terminal. |
| Location and latency | Choose a data center close to the broker's server. You can measure latency (ms) with the connection indicator at the bottom-right of MT5. |
| Reliability | Look at the provider's uptime commitment and support channels. |
| Backups | A snapshot or backup option for the server makes life easier. |
Setup steps
- Get a Windows VPS. Your provider gives you an IP address, a username and a password.
- Connect with Remote Desktop. Use "Remote Desktop Connection" on Windows, Microsoft Remote Desktop on Mac, or an app such as "RD Client" on your phone.
- Install MT5. Download the terminal from your broker's official page, install it inside the VPS and log in to your account.
- Install the EA. Copy the file to the right folder and attach it to a chart: How to install an EA in MT5.
- Check that the Algo Trading button is green.
- Disconnect, do not sign out. Closing the remote desktop window leaves the session open. The "Sign out / Log off" option closes open programs as well.
Common problems
| Symptom | Likely cause and fix |
|---|---|
| MT5 stays closed after the server restarts | Windows updates can restart the server. Put a shortcut to MT5 in the Windows Startup folder so it starts automatically. |
| The server slows down or memory is full | Close unneeded charts and symbols, reduce the number of open charts per terminal, and move to a plan with more RAM if needed. |
| High connection latency | Try a VPS in a location closer to the broker's server. |
| You cannot connect with Remote Desktop | Check the IP address, username and password; check the provider's firewall and access restrictions. |
| The session ends when you disconnect | Some providers end disconnected sessions after a set time. Check the provider's session settings. |
Security
- Use a strong, unique password and change the default one.
- If possible, allow remote desktop access only from known IP addresses.
- Check Windows updates regularly.
- Install only your own accounts and programs you trust on the server.
Frequently asked questions
Does a VPS reduce trade latency?
The closer the VPS is to the broker's server, the lower the latency can be, but that does not mean better results. Its main benefit is keeping the terminal running without interruption. You can see the latency (ms) in the connection indicator at the bottom-right of MT5.
Is there a free VPS?
Some brokers may offer a VPS if you meet certain balance or trading-volume conditions. The conditions differ between brokers and can change over time, so check the current terms on the broker's own page.
Does MT5 run on a Linux VPS?
MT5 is officially built for Windows. It can be run on Linux with Wine, but support is limited. A Windows VPS is less trouble for most users.
Does the EA stop if I close the window after connecting to the VPS?
No. Closing the remote desktop window (disconnecting) leaves the session open and the terminal keeps running. If you sign out (log off) of Windows, open programs are closed too, so do not do that.