Forex VPS Explained: Latency, MT4/MT5 Sizing and Setup

What a forex VPS does, how latency to your broker works, how much RAM MT4 and MT5 need, and how to secure and set up a Windows VPS for Expert Advisors.

Short answer: a forex VPS is a Windows virtual server that keeps your MetaTrader terminal running day and night, so an Expert Advisor (EA) keeps working when your own computer is asleep, restarting or offline. Three things decide whether it does the job well: how close the VPS is to your broker’s trade server, whether it has enough memory and CPU for the terminals you run, and how well Windows and Remote Desktop are locked down. This guide covers the technical side only. It is not trading advice.

Ucartz Windows VPS page with RDP and plans from $30 a month
Our Windows VPS page: Windows Server with RDP, suitable for running MetaTrader terminals.

What a forex VPS is, and what it is not

There is no special “forex hardware”. A forex VPS is an ordinary Windows VPS that you use for one job: running MetaTrader 4 or MetaTrader 5 around the clock. You connect to it with Remote Desktop, install the terminal your broker provides, log in to your trading account and leave it running. When you close the Remote Desktop window, the terminal keeps going on the server.

Why bother? An EA only trades while the terminal is open and connected to the broker. On a home PC that stops every time the machine sleeps, installs updates or loses its internet connection. A server in a data centre has none of those interruptions from your side.

MetaTrader 5 also offers its own built-in virtual hosting, which you rent from inside the platform to run your EAs and signals. A Windows VPS is a different thing: a whole Windows server under your control, where you can run several terminals, terminals from different brokers and any other Windows tools you use.

Latency: the distance to your broker matters most

Latency is the round-trip time between your terminal and the broker’s trade server. According to MetaQuotes, lower network latency gives better conditions for executing trades, such as less slippage and a lower chance of requotes. Latency is mostly a matter of distance and network routing, so the location of the VPS relative to the broker’s server is the single most important choice.

To give you a feel for the numbers, Microsoft publishes the median round-trip times it measures between its own data-centre regions. A few pairs from its latency statistics:

BetweenMedian round trip
Netherlands and London11 ms
Virginia (US East) and London78 ms
Virginia (US East) and the Netherlands83 ms
California (US West) and Tokyo108 ms
Virginia (US East) and Tokyo162 ms
Singapore and London167 ms
Typical examples between data centres on one private network, not guarantees. Your VPS to your broker will be different.

The lesson: a server in the same city or region as the broker’s trade server can be a few milliseconds away, while one on another continent adds tens or hundreds of milliseconds to every round trip.

How to check the latency to your broker

  1. Ask your broker where its trade servers are hosted. The server name you log in to often hints at the region, but only the broker can confirm it.
  2. In MetaTrader, look at the connection indicator in the bottom-right corner of the window. It shows the ping to the broker’s server. Compare the figure on the VPS with the one on your home PC.
  3. On the VPS, you can also test the connection from PowerShell with Microsoft’s Test-NetConnection, using the server address and port from your broker’s details:
Test-NetConnection -ComputerName <broker server> -Port <port>

According to Microsoft’s documentation, TcpTestSucceeded : True means the port answered, and PingReplyDetails (RTT) shows the round-trip time when the server replies to ping. Many trade servers do not answer ping, so the figure in MetaTrader is the one to trust.

How much RAM and CPU do MT4 and MT5 need?

There is no fixed figure per terminal. MetaQuotes says the platform runs on Windows 10 and 11 and that hardware needs depend on how you use it: the MQL5 programs running, the number of active symbols and the number of open charts. So size the VPS in two layers.

  • Windows itself. Microsoft’s minimum for Windows Server with the desktop is a 1.4 GHz 64-bit processor, 2 GB of RAM (4 GB recommended) and 32 GB of disk. Treat that as the floor, not the target, because updates and Remote Desktop need room too.
  • Your terminals. Each terminal adds memory for its charts, price history and EAs. If you run several accounts at once, MetaQuotes says each terminal must be installed in its own folder, because two copies cannot run from the same directory.
  • Testing and optimisation. The MT5 Strategy Tester runs local testing agents, and according to MetaQuotes their number equals the number of logical cores. More cores mean more optimisation passes at the same time. If you only trade live and never optimise on the VPS, cores matter less.

The reliable way to size is to measure. In MetaTrader 5, press F2 (or open Tools, then Task Manager) to see the memory used by charts and the CPU used by each EA. Windows Task Manager shows the total for the whole server. Check both after a full trading day with everything running, then leave comfortable headroom. If memory is tight, close charts you do not need and lower “Max bars in chart” under Tools, Options, Charts.

Security basics for a trading VPS

A trading VPS is a Windows server on the internet with access to your trading account. Treat it like one.

  • Lock down Remote Desktop. Use a long, unique password and allow RDP only from your own IP address. Our guide to changing the RDP port on Windows Server covers the firewall rules, including how to restrict RDP to your own IP address.
  • Only run EAs you trust. An EA is a program that can place trades on your account. Install EAs only from sources you trust.
  • Keep your login details somewhere safe. According to MetaQuotes’ security notes, the MT5 account database is tied to the Windows user and the computer. If you move the terminal to another server, the saved accounts are deleted, so keep your login numbers and passwords in a password manager.
  • Plan updates. MetaTrader’s Live Update cannot be switched off: it checks for new versions when it connects to the trade server and then offers to restart the terminal. Windows needs restarts too. For servers, Microsoft suggests setting Windows Update to notify you before it installs and restarts, so restarts happen when you choose, outside your trading hours.
  • Disconnect, do not sign out. Closing the Remote Desktop window leaves your session and the terminal running. Signing out closes every program, MetaTrader included.

Setting up a forex VPS, step by step

  1. Find out where your broker’s trade server is, and choose a VPS location that makes sense for it.
  2. Order a Windows VPS with enough RAM for Windows plus your terminals.
  3. Connect with Remote Desktop. See how to connect to a Windows VPS.
  4. Set a strong password and restrict RDP to your IP address before you install anything else.
  5. Install the terminal from your broker (its version already knows the broker’s servers), log in and check the ping in the connection indicator.
  6. Copy your EA into the terminal, allow algorithmic trading and attach it to a chart.
  7. Put a shortcut to the terminal in the Windows Startup folder (shell:startup), so it opens again after a restart.
  8. Close the Remote Desktop window without signing out, and check the Experts and Journal tabs the next day.

Steps 5 to 7 are covered in detail, with the exact menu names, in our guide to running MetaTrader 5 Expert Advisors around the clock on a Windows VPS.

Checklist before you choose a forex VPS

CheckWhy it matters
Data-centre locationSets the latency to your broker’s trade server
Windows licenceIncluded in the price, or an extra cost?
RAM and CPU coresEnough for Windows, every terminal and any optimisation runs
Remote Desktop usersHow many people can connect at once, and whether extra licences are needed for more
Console accessLets you or the host reach the server if Remote Desktop stops answering
SupportWho helps if Windows will not boot, and what it costs

A Windows VPS from Ucartz

If you would like a server for this, our Windows VPS comes with the Windows Server licence included. Windows runs on the VPS Pro (4 cores, 16 GB RAM) and VPS Elite (8 cores, 32 GB RAM) plans, in our USA data centre, so it suits brokers with trade servers in North America and anyone who mainly needs the terminal to stay online. Once the VPS is running, open a ticket and our engineers install Windows and turn on Remote Desktop for you. If your broker’s servers are elsewhere, measure the latency first and choose what fits.

Ithal P R
Ithal P R

Hi, I'm Ithal! I write tech and hosting blogs at Ucartz.com, where I share insights, tips, and the latest updates from the world of web hosting and technology. Whether it's about server setups, control panels, or tools to power your online presence, I break things down in a way that's easy to understand, even if you're just starting out.