Virteche
Guideschevron_rightServers

Servers · 8 min read · Updated

How to Keep MetaTrader Running on a Windows VPS

MetaTrader 4 and 5 only trade while the terminal is open, so an Expert Advisor on your own computer stops when the computer sleeps or the connection drops. On a Windows VPS it keeps running. Choose a location close to your broker's trade server, install MetaTrader over Remote Desktop, and disconnect rather than sign out when you leave. Then make it start again by itself after a restart, and keep Windows Update from restarting it during the trading week.

1. Choose the Plan and Location

Pick a plan with at least 4 GB of memory for Windows and a few terminals, and the location nearest your broker's trade server. Your broker can tell you where it is, and the server name often hints at it. Choose Windows Server as the operating system when you order.

2. Connect and Secure Remote Desktop

Connect with Remote Desktop as Administrator, using the password you set when ordering. Before anything else, install Windows updates and restrict Remote Desktop to your own address with the firewall on the server's page in the dashboard. An open Remote Desktop port is found by password-guessing bots within minutes. Connecting to a Windows VPS covers both.

3. Install MetaTrader

In the VPS, open Edge and download MetaTrader from your broker's website. The broker's version comes with its servers already listed. Install it, sign in with your trading account, and load your Expert Advisors and indicators into the terminal's MQL4 or MQL5 folder (File → Open Data Folder).

Turn on Tools → Options → Expert Advisors → Allow algorithmic trading (MT4: Allow automated trading) and the Algo Trading (MT4: AutoTrading) button on the toolbar.

For more than one account, install each terminal into its own folder (the installer's Settings button lets you choose), or copy an installation and start the copy in portable mode so it keeps its data in its own folder:

"C:\MT5-Account2\terminal64.exe" /portable

4. Check the Ping to Your Broker

The connection indicator at the bottom right of MetaTrader shows the round-trip time to the trade server. In MT5 it is shown directly; in MT4, click the indicator and choose Rescan servers to see the ping to each. Compare it with what you get at home. If it is much higher than you expected, ask your broker which data centre its server is in.

5. Disconnect, Don't Sign Out

Closing the Remote Desktop window disconnects you and leaves everything running. Sign out from the Start menu closes every program, MetaTrader included. Close the window when you leave.

6. Start Again After a Restart

Windows needs a signed-in session to run MetaTrader, so after a restart nothing trades until someone signs in. Two changes fix that:

  1. Sign in automatically. Microsoft's free Sysinternals Autologon tool stores the password encrypted and signs in at startup. Keep Remote Desktop restricted to your address, since the server now opens a session without a password prompt.
  2. Start MetaTrader on sign-in. Press Win+R, type shell:startup, and put a shortcut to each terminal in the folder that opens.

7. Keep Updates to the Weekend

Windows installs updates and restarts on its own schedule, which can stop an EA mid-week. On Windows Server, set updates to download but wait for you. Open PowerShell as administrator and run:

sconfig

Choose Update setting, then Download only. Install the updates yourself when the markets are closed (Settings → Windows Update) and restart. Do not leave them for months: the server is on the internet, and security updates matter.

If Something Goes Wrong

If Remote Desktop will not connect, open the browser console (VNC) on the server's page in your dashboard. It shows the server's screen whatever the network or firewall is doing, so you can check whether MetaTrader is still running.

Common Questions

  • How much memory do I need?

    Windows Server itself uses about 2 GB. Each MetaTrader terminal adds a few hundred megabytes, more with many charts, long history or heavy indicators. 4 GB is comfortable for one to three terminals; open Task Manager after a day of running to see your real use before adding more.

  • Which location should I choose?

    The one closest to your broker's trade server. Ashburn, Virginia is the closer of our two locations to the New York area, where many brokers host their servers; Dallas, Texas is central US. After setting up, check the ping MetaTrader reports to your broker before relying on it.

  • Isn't there a VPS built into MetaTrader?

    Yes. MetaQuotes offers built-in virtual hosting for running Expert Advisors and signal subscriptions. A Windows VPS is the choice when you want several terminals or brokers, other software alongside MetaTrader, or full control of the machine.

  • Does Virteche provide trading software or advice?

    No. We provide the Windows server. Your broker provides MetaTrader and the trading account, and what you run on it, and any risk that comes with trading, is your own.

Windows Server 2019, 2022 and 2025 in Ashburn and Dallas. Add a Windows licence at checkout or bring your own.

See forex VPS plans

Keep Reading

All guides