Workloads & Use Cases
Workloads & Use Casesbeginner14 min read·Updated Nov 12, 2026

MetaTrader VPS Setup: Run MT4/MT5 EAs 24/7 on Windows

Set up MetaTrader 4 or MetaTrader 5 on a Windows VPS, move EAs and profiles safely, keep terminals running after RDP disconnect, troubleshoot connection issues, and choose the right VPS size.

Genuine, fully-licensed Windows
Spin up a Windows Server: full admin, RDP-ready
Genuine Windows Server 2019, 2022, or 2025 with full administrator access. We handle the Microsoft licensing, billed monthly with nothing to buy upfront.

In short

A MetaTrader VPS is a remote Windows environment that keeps MT4 or MT5 running even when your own computer is off. The practical setup is: deploy a Windows VPS, connect over RDP, install the broker's MetaTrader terminal, copy your EAs and profiles, verify the broker server, enable automated trading, then disconnect from RDP without signing out so the Windows session stays active.

For one light terminal, 2 vCPU and 4 GB RAM is usually a sensible starting point. Multiple terminals, heavy indicators, or strategy testing need more headroom. If your EA depends on DLLs, multiple terminals, custom scripts, or Windows-level tools, a full Windows VPS is more flexible than MetaTrader's built-in Virtual Hosting.

On Raff, a Windows VPS for MetaTrader starts at $7.99 for your first month, then $22.99 a month on the Standard plan, with the Windows Server licence included. The Business plan adds guaranteed vCPU and the written uptime SLA, from $13.99 for your first month, then $28.99 a month. Raff Keep can install MetaTrader 4 and 5 for you and starts the terminals again after a restart.

MetaTrader VPS vs MetaTrader Virtual Hosting

MetaTrader users can choose between two different hosting models:

OptionBetter fit
Windows VPSFull RDP desktop, multiple MT4/MT5 terminals, custom files, DLL-dependent EAs, scripts, backup tools, broker-specific software
MetaTrader Virtual HostingA simpler MetaTrader-native environment for migrating one terminal's EAs, indicators, charts, and signals without managing Windows

MetaTrader's own Virtual Hosting is integrated into the platform and is designed around migration from the local terminal. It is not a general-purpose Windows desktop.

One important limitation: MetaQuotes documentation states that DLL calls are not allowed in the virtual hosting environment. If your EA requires trusted DLLs or other Windows-level dependencies, use a full Windows VPS instead.

MetaQuotes also limits each rented terminal to one trading account. MQL5 hosting costs $15 a month, or $10 a month on a 12-month plan (mql5.com, checked 12 October 2026). It has no remote desktop, so you cannot install other software on it or run the Strategy Tester there.

A useful decision rule is:

Text
Need only MetaTrader-native EA/signal hosting → MetaTrader Virtual Hosting can be simpler Need full Windows control, RDP, multiple terminals, custom tooling, DLLs, or file automation → Windows VPS

Why run MT4 or MT5 on a Windows VPS?

A Windows VPS gives MetaTrader a remote desktop that can remain online independently of your laptop.

That helps when you need:

  • 24/7 EA availability;
  • MT4 or MT5 running while your own PC is off;
  • several terminals or broker accounts;
  • remote administration over RDP;
  • a consistent Windows environment;
  • central files, presets, templates, and logs;
  • controlled Windows updates and reboot windows;
  • access from another computer or mobile RDP client.

A VPS does not guarantee trading profits, broker execution, low slippage, or a particular latency result. It only provides the infrastructure layer.

What you need before you start, and how long setup takes

Have these ready before you deploy:

  • your trading account number, password and the exact broker server name;
  • the MT4 or MT5 installer from your broker's client portal;
  • your EA files, .set presets and custom indicators;
  • any EA licence key, because some vendors bind a licence to one machine.

A Raff Windows VPS is ready in about 55 seconds after you deploy it. Most of the remaining time is your own setup: install the terminal, copy your files, then check the first trades on a demo account.

Step 1 — Choose the VPS around the MetaTrader workload

MetaTrader itself is usually light, but the complete workload can grow quickly as you add terminals, charts, EAs, historical data, and backtesting.

WorkloadStarting point
1 MT4/MT5 terminal, light EA2 vCPU / 4 GB RAM
1–3 terminals, several charts2–4 vCPU / 4–8 GB RAM
3–6 terminals, multiple EAs4 vCPU / 8 GB RAM
Many terminals or heavy indicators4–8 vCPU / 8–16 GB RAM
Strategy testing / optimizationMore CPU and RAM; benchmark the actual EA

These are planning ranges, not guarantees. EA code quality, indicator load, tick frequency, chart count, and tester jobs can change CPU use dramatically.

For MetaTrader, it is usually better to leave headroom than to run the VM near 100% CPU or RAM during live automation.

Shared or dedicated CPU for MT5?

A typical Expert Advisor uses little CPU most of the time. It needs CPU when a new tick or bar arrives, often in bursts, for example around news. So the risk on a VPS is not the average load. The risk is a short CPU stall at that moment.

  • Leave headroom: choose a plan where normal CPU use stays well below 100%.
  • Keep optimisation off the live server. The MT5 Strategy Tester runs one testing agent per CPU core, so a backtest or an optimisation uses every core it can get. Run heavy optimisation on a larger plan or on your own PC.

Raff sells Windows on two plans, both on AMD EPYC with NVMe storage. The Business plan gives guaranteed vCPU, so the CPU is there when a tick arrives: choose it for live EAs that trade often or for several terminals. The Standard plan shares vCPU at a lower price and suits one light terminal, a demo account or an EA that trades rarely.

Step 2 — Connect to the Windows VPS over RDP

After the VM is running, connect with Remote Desktop.

Use:

Text
Computer: VPS public IP Username: Administrator Password: your Windows VPS password

For the full first-login workflow, use How to Connect to a Windows VPS via RDP.

After first login:

  1. Run Windows Update.
  2. Reboot if required.
  3. Reconnect.
  4. Confirm the server time and time zone.
  5. Confirm internet access.
  6. Save credentials in a password manager.

Do not install trading software before the Windows Server is patched and stable.

Step 3 — Install MT4 or MT5 from the broker or MetaQuotes

Prefer the installer from your broker's official client portal when you are connecting a live account. Broker-provided packages often include the correct server list and connection settings.

Use an official MetaQuotes download only when appropriate for your account.

Avoid random third-party installers.

After installation:

  1. Open MetaTrader.
  2. Log in to the trading account.
  3. Select the exact broker server.
  4. Confirm the connection indicator.
  5. Check the Journal tab for login errors.
  6. Verify the account number and server before enabling automation.

If the account connects on your home PC but not on the VPS, the first thing to compare is the broker server name, not the VPS itself.

Step 4 — Move an existing MT4/MT5 setup without breaking profiles or EAs

If you already have MetaTrader configured on another computer, migrate the application data rather than rebuilding every chart manually.

On the source MetaTrader terminal:

Text
File → Open Data Folder

Important folders include:

FolderPurpose
MQL4 / MQL5EAs, indicators, scripts
ExpertsExpert Advisor files
IndicatorsCustom indicators
PresetsEA .set parameter files
ProfilesChart layouts
TemplatesChart templates
LogsTerminal logs
TesterStrategy Tester data and caches

Safe migration sequence:

  1. Close MetaTrader on both source and VPS.
  2. Back up the source data folder.
  3. Copy only the folders you actually need.
  4. Start MetaTrader on the VPS.
  5. Open the correct charts and profiles.
  6. Verify every EA and indicator loads.
  7. Re-enter vendor license details if the EA binds to a new machine.
  8. Confirm symbols, timeframes, and broker suffixes match.

Do not assume a copied profile proves the EA is operational. Check the Experts and Journal tabs after migration.

Step 5 — Install and verify Expert Advisors

For MT4:

Text
MQL4 → Experts

For MT5:

Text
MQL5 → Experts

After copying the EA:

  1. Restart MetaTrader or refresh Navigator.
  2. Open the required chart.
  3. Attach the EA.
  4. Load the correct preset if you use a .set file.
  5. Confirm automated trading permission.
  6. Check whether DLL or WebRequest access is required.
  7. Read Experts and Journal for errors.

Only enable DLL imports for software you trust. DLLs execute native code inside Windows and should be treated like any other executable dependency.

Step 6 — Keep MetaTrader running after Remote Desktop disconnects

This is the most important operational step.

When you finish managing the VPS, disconnect from RDP. Do not sign out of Windows.

Correct:

Text
Close the RDP window or Disconnect the RDP session

Avoid:

Text
Start → Sign out

or:

Cmd
logoff

Signing out ends the Windows desktop session and normally closes GUI applications running in that session, including MetaTrader.

After disconnecting, reconnect later and verify:

  • MetaTrader is still open;
  • account connection is active;
  • the EA is still attached;
  • Algo Trading / AutoTrading is enabled;
  • no repeated Journal or Experts errors appeared.

Step 7 — Start MetaTrader again after planned reboots

An RDP disconnect keeps the current user session alive, but a Windows reboot ends it.

For a simple environment, place a MetaTrader shortcut in the Startup folder:

Text
Win + R shell:startup

A more controlled option is Task Scheduler:

Text
Trigger: When I log on Action: Start terminal.exe or terminal64.exe

Do not treat MetaTrader as a Windows service unless the software vendor explicitly supports that architecture. It is a desktop application.

After every reboot:

  1. Sign in.
  2. Confirm MetaTrader launches.
  3. Confirm broker connection.
  4. Confirm EA state.
  5. Check logs.

On Raff, the Raff Keep MetaTrader 4 and 5 setup does this for you. It installs MetaTrader 5, MetaTrader 4 or both on Windows Server 2025, gives each terminal its own folder, and starts each terminal again by itself after a restart. Check the terminal and the broker connection after each restart anyway.

Step 8 — Monitor MT5 or MT4 from a phone

A VPS does not require you to keep an RDP session open all day.

For account monitoring, the cleaner approach is usually:

  • use the broker's official MT4/MT5 mobile app for positions and account status;
  • use RDP from a phone only when you need to administer the Windows terminal itself;
  • configure EA/vendor notifications where supported;
  • review Journal and Experts logs during scheduled checks.

This reduces the temptation to leave a Remote Desktop session open continuously.

Step 9 — Troubleshoot “No connection” on a MetaTrader VPS

Do not assume every MetaTrader connectivity problem is a VPS outage.

Check in this order:

1. VPS internet access

Open a browser on the VPS and confirm normal internet connectivity.

2. Broker server selection

Confirm the exact server name used by the account.

3. Account type

Check whether the login is MT4 or MT5 and whether it is demo or live.

4. MetaTrader Journal

Look for:

  • authorization failed;
  • no connection;
  • invalid account;
  • server unavailable;
  • network or proxy errors.

5. Broker status

If other applications on the VPS work but MetaTrader cannot reach the broker, verify the broker's server status before changing Windows Firewall.

The useful diagnostic split is:

Text
No internet on VPS → infrastructure/network issue Internet works, broker server unreachable → broker/routing/terminal issue Broker connects, EA still fails → EA/configuration/permission issue

Step 10 — Troubleshoot an EA that works on your PC but not on the VPS

Common causes include:

  • Algo Trading disabled;
  • EA-level trading permission disabled;
  • wrong chart or timeframe;
  • different symbol name or suffix;
  • missing indicator dependency;
  • missing DLL;
  • DLL permission disabled;
  • missing WebRequest domain;
  • vendor licence tied to the old machine;
  • missing .set preset;
  • Windows path differences;
  • broker account or server mismatch.

Check:

Text
Tools → Options → Expert Advisors

Then inspect Experts and Journal. If the EA is loaded but never sends a trade request, do not immediately resize the VPS. First rule out strategy conditions and permissions.

Step 11 — Separate RDP performance from trading-platform connectivity

A slow Remote Desktop session does not automatically mean MetaTrader is disconnected from the broker.

RDP responsiveness depends on your client-to-VPS path. MetaTrader broker connectivity depends on the VPS-to-broker path.

If RDP feels slow but MetaTrader shows a stable broker connection and normal logs, the trading terminal may still be operating correctly.

For RDP troubleshooting, see Remote Desktop Slow? Improve RDP Performance.

Step 12 — Back up the MetaTrader environment

Back up the MetaTrader data folder before:

  • changing EA versions;
  • changing parameters;
  • moving to another VPS;
  • upgrading MetaTrader;
  • changing broker account;
  • cleaning profiles or templates;
  • making large Windows changes.

Keep copies of:

  • MQL4 or MQL5;
  • profiles;
  • templates;
  • presets;
  • vendor configuration files;
  • relevant logs;
  • screenshots or reports you rely on.

Store an off-server copy. A backup stored only on the same VM does not protect against VM loss or accidental deletion.

Step 13 — Secure the trading VPS

Treat the VPS as a system containing financial-account credentials and executable trading code.

Use:

  • strong unique Windows credentials;
  • Windows Firewall;
  • Windows Update;
  • trusted EA sources only;
  • no cracked EAs or indicators;
  • no public SMB shares;
  • restricted RDP access where practical;
  • backups and restore checks;
  • separate passwords for broker and VPS;
  • a password manager.

If you can restrict RDP by trusted source IP or use a controlled access path, do so.

Choosing latency for MetaTrader

Latency should be measured against the broker's actual trade server, not against your own physical location.

The number that matters is the VPS-to-broker path.

Execution also depends on:

  • broker infrastructure;
  • liquidity routing;
  • account type;
  • spread;
  • slippage;
  • order type;
  • market volatility;
  • EA logic.

A hosting provider cannot guarantee broker execution quality or trading results.

For reference, Raff runs Windows in US East and EU Central. Measured from a Raff US East VPS on 11 September 2026, with 50 samples: 8.6 ms TCP median to a New York-area reference host (Linode, Newark, New Jersey) and about 77 ms to London reference hosts. If your broker's trade server is in New York, choose US East. If it is in London, choose EU Central, which is much closer to London. Windows in EU Central runs on the Standard plan; the Business plan is in US East. Your own number is the ping MetaTrader shows for your broker's server, in the bottom right corner of the terminal.

How Raff fits MetaTrader VPS workloads

Raff provides Windows VM infrastructure where traders can install MT4 or MT5, connect over RDP, run multiple terminals, manage files, and operate trusted EAs or indicators.

Raff's role is the infrastructure layer, not the brokerage or trading-strategy layer.

Raff does not provide:

  • broker services;
  • trading advice;
  • profitability guarantees;
  • EA certification;
  • account management;
  • broker execution guarantees.

What a Raff forex VPS includes:

  • Windows Server 2019, 2022 or 2025 with the genuine Windows Server licence included in the price;
  • from $7.99 for your first month, then $22.99 a month on the Standard plan, or $13.99, then $28.99 a month on the Business plan (1 vCPU, 2 GB RAM, 50 GB NVMe); the first-month price is for your account's first server on monthly billing;
  • the 2 vCPU / 4 GB size from Step 1 at $29.99 a month on the Standard plan (50 GB disk, $14.99 for the first month) or $37.99 on the Business plan (80 GB disk, $22.99 for the first month);
  • billed yearly, the entry size works out to $21.66 a month on the Standard plan or $26.66 on the Business plan;
  • unmetered bandwidth on both plans, a 99.9% uptime SLA on the Business plan, and a 14-day money-back guarantee on your first purchase;
  • Raff Keep MetaTrader 4 and 5, which installs the terminals and starts them again after a restart.

See plans, terminal sizing and the latency method on the Raff forex VPS for MT4 and MT5 page. For other Windows workloads, size a Raff Windows VM around the number of terminals, EAs, charts, and tester workload.

See forex VPS plans for MT4 and MT5 with the Windows licence included, then validate your EA on a demo account before live use.

Compatible with Raff

This article documents a customer-managed MetaTrader architecture that is compatible with Raff Windows VMs. The current article does not make a fresh “Tested on Raff” claim because it does not include a complete new test environment, dated engineer validation, and original MetaTrader screenshot set required by Raff's Windows editorial standard.

What's next

Sources


MetaTrader, MetaTrader 4, MetaTrader 5, MQL4, MQL5, and MetaQuotes are trademarks or products of MetaQuotes Ltd. Raff is not affiliated with or endorsed by MetaQuotes or any broker. This article is technical infrastructure documentation and is not financial advice.

Was this article helpful?

Frequently asked questions

Why run MetaTrader on a VPS instead of my own computer?
Expert Advisors only trade while the terminal is running. On a Windows VPS, MetaTrader stays online 24/7 regardless of your PC, power, or internet, and you can disconnect the remote session without stopping the terminal.
What VPS specs does MetaTrader need?
One terminal with a few charts runs comfortably on 2 vCPU and 4 GB RAM. Add RAM for extra terminals, chart counts, and Expert Advisors. Latency to your broker's server usually matters more than raw CPU.
Is MetaTrader's built-in VPS better than a Windows VPS?
The built-in VPS is simpler but limited: it is tied to the account and runs only MetaTrader. A Windows VPS gives full control, multiple terminals, other trading tools, custom software, and your own backup strategy.
Does closing the RDP window stop my Expert Advisors?
No. Disconnecting the RDP session leaves the Windows session and MetaTrader running. Signing out ends the session and stops the terminal, so always disconnect, never log off.

Published April 20, 2026 · Updated November 12, 2026

Back to hub
Ready when you are

Your Windows Server, live in ~55 seconds

Genuine, fully-licensed Windows with full admin and RDP. We handle the Microsoft licensing, billed monthly with nothing upfront. On NVMe SSD, backed by a 14-day money-back guarantee.

Related articles