Forex VPS for Expert Advisors: latency, uptime and setup on MT4 and MT5
A forex VPS for Expert Advisors is a Windows virtual server in a data centre that keeps MetaTrader 4 or MetaTrader 5 running around the clock near the broker’s trade server, so an Expert Advisor trades without a home computer.
A forex VPS changes two things for an Expert Advisor: uptime and network latency. The trading rules, spread and risk of the strategy stay the same. This guide compares MetaQuotes Virtual Hosting with a third-party Windows VPS, explains how much latency matters, how to pick the VPS location, how much RAM a VPS needs, and how to set up and monitor an Expert Advisor on the server. This guide is part of the HiPips path to choose, test and run an MT4 or MT5 Expert Advisor, which starts with what an Expert Advisor is.
What is a forex VPS for Expert Advisors?
A forex VPS for Expert Advisors is a rented virtual machine that runs the MetaTrader terminal continuously, so the Expert Advisor attached to its charts keeps receiving prices and sending orders while the trader’s own computer is off.
An Expert Advisor runs inside the MetaTrader terminal. The Expert Advisor trades only while that terminal is open and connected to the broker, so a laptop that sleeps, restarts for updates or loses Wi-Fi stops the strategy in the middle of open positions. Traders use two types of forex VPS for Expert Advisors: MetaQuotes Virtual Hosting, which is built into MT4 and MT5, and a third-party Windows VPS with a full desktop.
Does an Expert Advisor need a VPS?
An Expert Advisor needs a VPS when it must manage orders while the trader is away from the computer: overnight positions, trailing stops, grid baskets, trade copiers and scalping strategies.
A VPS is optional for an Expert Advisor that trades during hours the trader watches the screen and closes every position before shutting the computer down. The strategy types below show where uptime and latency matter most.
| Expert Advisor type | Uptime need | Latency sensitivity | Reason |
|---|---|---|---|
| Scalping Expert Advisor | 24/5 | High | Small targets; a delay of a few points changes the result |
| Grid or recovery Expert Advisor | 24/5 | Medium | Basket exits and equity stops must run while positions are open |
| Trade copier | 24/5 | Medium to high | Receivers miss close events when the terminal is offline |
| Swing or trend Expert Advisor | 24/5 when positions stay open | Low | Stops and exits must still run overnight |
| Session-only Expert Advisor closed before shutdown | Trading hours only | Low | No open positions while the computer is off |
A trade copier has the strictest uptime need of these tools, because both the master and receiver terminals must stay online; the guide to the MT4 trade copier explains why a local copier runs both terminals on one VPS.
MetaQuotes Virtual Hosting vs a third-party Windows VPS
MetaQuotes Virtual Hosting is the VPS built into MT4 and MT5 that hosts one terminal for one trading account, while a third-party Windows VPS is a full remote desktop that runs as many terminals and programs as its resources allow.
MetaQuotes lists Virtual Hosting from 15 USD per month on a 1-month plan down to 10 USD per month on a 12-month plan, with up to 3 GB of RAM and up to 16 GB of disk for each hosted platform, according to the MetaTrader VPS page. The hosting rules set the limits: one rented terminal works with one trading account only, a paid server migrates up to 32 charts with Expert Advisors, scripts are not migrated, and no DLL calls are allowed on a virtual terminal, according to the MetaTrader Virtual Hosting rules. The comparison below sums up both options.
| VPS factor | MetaQuotes Virtual Hosting | Third-party Windows VPS |
|---|---|---|
| Setup | Rented and migrated from the terminal’s Navigator | Remote Desktop login, manual MetaTrader installation |
| Accounts per server | One trading account per rented terminal | Several terminals and accounts on one server |
| Charts with Expert Advisors | Up to 32 on a paid server | Limited by RAM and CPU |
| DLL imports | Not allowed | Allowed, if the Expert Advisor needs them |
| Local trade copier | Not suited (one terminal per server) | Suited (master and receiver on one server) |
| Scripts and external programs | Not migrated | Run normally |
| Windows updates and restarts | Managed by MetaQuotes | Managed by the trader |
| Price reference | 10 to 15 USD per month | Depends on provider and RAM |
An Expert Advisor that imports DLL functions stops with a critical error on MetaQuotes Virtual Hosting, so it needs a third-party Windows VPS; the guide to no-DLL Expert Advisors explains how to check whether an Expert Advisor uses DLL calls.
How much does latency matter for an Expert Advisor?
Latency matters for an Expert Advisor in proportion to how small its profit target is: a scalping Expert Advisor feels every millisecond of delay, while a swing Expert Advisor with targets of hundreds of points barely notices it.
Latency is the round-trip time between the terminal and the broker’s trade server. MetaQuotes states that its hosting gives 0 to 5 ms latency compared with delays from 100 ms on a home computer, and that 84% of broker servers are reachable in less than 3 ms from its hosting points, according to the MetaTrader VPS page. A lower latency shortens the time between a signal and the order reaching the broker, which reduces slippage and requotes on market orders during fast price moves.
Latency does not create a trading edge. A strategy that loses money with 100 ms of latency keeps losing with 3 ms, and spread, commission and slippage on news remain the larger costs for most Expert Advisors. Measure latency before choosing a VPS, then judge the strategy by its results on that VPS.
How to choose the VPS location
The best VPS location for an Expert Advisor is the data centre closest to the broker’s trade server, because network distance sets the minimum latency.
Many forex brokers host MetaTrader servers in financial data centres. IC states that its MetaTrader 4 and cTrader trade servers are located in the Equinix NY4 and LD5 data centres in New York and London, according to the IC trading servers page. The steps below find the right location for any broker.
- Read the broker’s platform or VPS page for the server city, or ask the broker’s support team.
- Open the MT4 or MT5 login dialog and press Scan to refresh the ping of every broker server; the server with the lowest ping is the preferred access point, according to the MetaTrader 4 help on opening accounts.
- Choose a VPS provider data centre in the same city, or register MetaQuotes Virtual Hosting, which suggests the nearest hosting point by ping in the rental wizard.
- Confirm the ping in the terminal’s connection status after the first login on the VPS.
How much RAM and CPU does a forex VPS need?
A forex VPS needs enough RAM for Windows plus every running terminal, with headroom for news spikes; start from a 4 GB Windows server for one or two terminals and resize after measuring.
Windows Server 2025 requires 2 GB of RAM for Server with Desktop Experience, with 4 GB recommended, and at least 32 GB of disk space, according to Microsoft’s Windows Server hardware requirements. MetaTrader 5 has no fixed hardware figure: its requirements depend on the running MQL5 programs and the number of active symbols and charts, and MT5 runs on Windows 10 or 11, according to the MetaTrader 5 installation help.
Size a third-party VPS from a measurement, not a guess. The sizing steps are listed below.
- Run each terminal on the VPS with its real charts, Expert Advisors and Market Watch symbols.
- Open Windows Task Manager during an active session and note the memory of each terminal process.
- Add Microsoft’s recommended 4 GB for Windows to the sum of the terminal figures.
- Keep at least a quarter of the total free for news spikes, platform updates and Remote Desktop.
A server with three terminals that use 600 MB each needs 4 GB + 1.8 GB = 5.8 GB, so an 8 GB VPS leaves the headroom. Remove unused symbols from Market Watch and close unused charts to cut the tick traffic and memory of each terminal.
How to set up an Expert Advisor on a forex VPS
Setting up an Expert Advisor on a third-party forex VPS takes seven steps, from the Remote Desktop login to the first check of the Experts log. The seven steps are listed below.
- Connect to the VPS with Remote Desktop and install MT4 or MT5 from the broker’s download link.
- Install each additional platform in its own directory; MetaTrader 5 help instructs traders who work with several accounts at once to install the matching number of platforms in different directories.
- Log in to the trading account and confirm the connection and ping in the status bar.
- Copy the Expert Advisor file and its setfile into the terminal’s Data Folder (File > Open Data Folder).
- Attach the Expert Advisor to the chart, load the setfile and enable algorithmic trading.
- Schedule Windows updates and restarts for the weekend, when the forex market is closed.
- Read the Experts and Journal tabs for errors before leaving the VPS.
The installation steps on the chart match a home computer, and the guide on how to install an Expert Advisor and setfiles in MT5 covers them screen by screen.
MetaQuotes Virtual Hosting follows a shorter path. Right-click the trading account in the Navigator, choose Register a Virtual Server, pick the plan suggested by the wizard, and migrate the charts, Expert Advisors and settings from the local terminal, according to the MetaTrader 4 help on registering a virtual server. Prepare the local terminal first, because the virtual terminal receives exactly the charts and Expert Advisors that are running at migration time.
How to monitor an Expert Advisor on a VPS
Monitoring an Expert Advisor on a VPS means checking three things on a fixed schedule: the connection, the Experts log and the open positions.
The monitoring routine is listed below.
- Daily connection check: the status bar shows a live connection and normal ping.
- Daily log check: the Experts and Journal tabs show no rejected orders, invalid stops or disabled trading.
- Weekend restart check: after broker server maintenance or Windows updates, the terminal is logged in and the Expert Advisor is attached with automated trading enabled.
- Position check: open positions and pending orders on the VPS match the account history on a phone terminal.
An Expert Advisor that stops opening trades on the VPS usually shows the cause in the Experts tab, and the checklist for an Expert Advisor not trading walks through each message.
Can you get a free forex VPS?
A free forex VPS is available through brokers that join the MetaQuotes Sponsored VPS program, which lets a brokerage give its clients free MetaTrader Virtual Hosting under conditions the broker sets, according to MetaQuotes. MetaQuotes describes these conditions as simple actions the trader performs regularly, so read the broker’s terms before choosing it for the free server. Free hosting migrates up to 16 charts with Expert Advisors, half the paid limit, under the Virtual Hosting rules.
Does a VPS make an Expert Advisor profitable?
A VPS does not make an Expert Advisor profitable, because it changes uptime and latency and leaves the strategy’s rules, costs and risk as they were. Judge the strategy itself with a backtest and a forward test before paying for hosting, and compare MT4 and MT5 Expert Advisors by platform, symbol and risk profile before choosing one to run on the server.
9 thoughts on “Forex VPS for Expert Advisors: latency, uptime and setup on MT4 and MT5”