Skip to content
AlgoVerdict
Menu
  • Loading …

Broker & VPS · As of 3 Nov 2026

Set Up a VPS for MetaTrader: Step-by-Step Guide with Video

Nine steps from a freshly ordered Windows VPS to a terminal that runs around the clock: location next to the broker's server, the right size, Remote Desktop, Windows basics, MT5 with autostart, disconnecting properly, checking the ping and a short weekly routine.

AlgoVerdict editorial team, responsible: Pitt PetruschkeUpdated

On this page

A VPS is a Windows machine in a data centre that runs your MetaTrader while your own PC is switched off. Why that matters for EAs is covered in VPS for Expert Advisors. This guide is about the setup: from the ordered server to a terminal that keeps running after every reboot.

You need: a Windows VPS (or the login of a broker VPS), your MT5 login from the broker and about 45 minutes. The drawings show the English Windows interface that most VPS come with.

Set up a VPS for MetaTrader: video walkthrough · 1:14 min · no sound, captions available
Chapters
  1. 0:031. Pick a location next to the broker’s server
  2. 0:112. Size it for 1–3 terminals
  3. 0:183. Connect via Remote Desktop
  4. 0:264. Prepare Windows
  5. 0:335. Install MT5 on the VPS
  6. 0:416. Start MT5 automatically after a reboot
  7. 0:487. Disconnect, don’t sign out
  8. 0:568. Check the ping in MT5
  9. 1:039. Run a short weekly check

The guide in 9 steps

  1. Step 1: Pick a location next to the broker’s server

    Choose a Windows VPS in your broker’s data centre, not near where you live. Most forex brokers run their trade servers in London (Equinix LD4) or New York (NY4). The broker lists the location in the client area or tells you on request.

    VPS provider order page: on the right the broker’s trade server in London LD4 is highlighted, on the left the matching London LD4 location is selected, with Windows Server 2022 as the operating system.Web browserhttps://vps-provider.example/order/windowsConfigure your Windows VPSData centre locationLondonEquinix LD4≈ 1 ms to LD4New YorkEquinix NY4≈ 75 ms to LD4FrankfurtEquinix FR2≈ 15 ms to LD4SingaporeEquinix SG1≈ 170 ms to LD4Operating systemWindows Server 2022 Standard (64-bit)Your brokerTrade server: Broker-LiveLocation: London (LD4)VPSLD4BrokerLD41 ms123
    Open drawing full size
  2. Step 2: Size it for 1–3 terminals

    One terminal with a few charts runs on 1 vCPU and 2 GB RAM. For 2–3 terminals take 2 vCPU and 4 GB RAM, otherwise it gets tight during Windows updates or busy markets. What matters is guaranteed, not shared, CPU and RAM.

    Three VPS plans S, M and L. Plan M with 2 vCPU and 4 GB RAM and the note “2–3 terminals” is highlighted.Web browserhttps://vps-provider.example/order/windows/planChoose a planGuaranteed (not shared) CPU and RAM · SSD/NVMe storagePlan S1 vCPU2 GB RAM30 GB SSDFits1 terminal, few chartsSelectPlan M2 vCPU4 GB RAM60 GB SSDFits2–3 terminalsSelectedPlan L4 vCPU8 GB RAM100 GB SSDFits4+ terminals, heavy EAsSelect12
    Open drawing full size
  3. Step 3: Connect via Remote Desktop

    After ordering you receive the IP address, user name (usually Administrator) and password by email. On Windows open Remote Desktop Connection (mstsc), enter the IP and click Connect. On a Mac use Microsoft’s free Windows App and add a PC with that IP.

    Remote Desktop Connection window with the IP address 203.0.113.25 in the Computer field and the Connect button, next to it the credentials prompt with the password field.Remote Desktop ConnectionRemote DesktopConnectionComputer:203.0.113.25User name:AdministratorYou will be asked for credentials when you connect.Show OptionsConnectHelpWindows SecurityEnter your credentialsThese credentials will be used to connect to 203.0.113.25.Administrator••••••••••••••Remember meOKCancel123
    Open drawing full size
  4. Step 4: Prepare Windows

    First change the password (inside the remote session Ctrl+Alt+End → Change a password). Set the time zone, set screen and sleep to Never in the power settings, and set active hours in Windows Update to your trading hours.

    Windows Settings with four highlighted items: change password, time zone, power option “Never” for sleep, and active hours 06:00 to 23:00 in Windows Update.203.0.113.25 - Remote Desktop Connection10:02SettingsHomeSystemAccountsTime & languageWindows UpdateAccounts › Sign-in optionsPasswordChangeTime & language › Date & timeTime zone(UTC+00:00) LondonSystem › PowerWhen plugged in, turn off after / sleep afterNeverWindows Update › Advanced optionsActive hours06:00 – 23:001234
    Open drawing full size
  5. Step 5: Install MT5 on the VPS

    Download your broker’s MT5 installer on the VPS itself and install it into its own folder, for example C:\Trading\Broker-MT5-Live. If you already run a portable terminal locally, copy the whole folder across via the clipboard.

    File Explorer on the VPS showing the folder C:\Trading\Broker-MT5-Live. The address bar and the file terminal64.exe are highlighted.203.0.113.25 - Remote Desktop Connection10:02File ExplorerThis PC › Local Disk (C:) › Trading › Broker-MT5-LiveNameTypeSizeConfigFile folderMQL5File folderProfilesFile foldermetaeditor64.exeApplication58 MBterminal64.exeApplication74 MBuninstall.exeApplication6 MBCopied from your PC via the Remote Desktop clipboard (Ctrl+C → Ctrl+V), or installed fresh.12
    Open drawing full size
  6. Step 6: Start MT5 automatically after a reboot

    Press Win+R, type shell:startup and create a shortcut to terminal64.exe in the Startup folder that opens. For a portable install add /portable after the closing quote in the Target field. After a reboot, log in once via RDP and MT5 starts with your account and EAs.

    Run dialog with shell:startup, below it the Startup folder with the shortcut “MT5 Broker Live”, and on the right its properties with the target terminal64.exe /portable.203.0.113.25 - Remote Desktop Connection10:02RunType the name of a program, folder or document.Open:shell:startupOKCancelStartup… › Start Menu › Programs › StartupMT5 Broker Live (shortcut)MT5 Broker Live PropertiesShortcutTarget:"C:\Trading\Broker-MT5-Live\terminal64.exe" /portableStart in:C:\Trading\Broker-MT5-LiveOKCancel123
    Open drawing full size
  7. Step 7: Disconnect, don’t sign out

    When you are done, close the Remote Desktop window with the X at the top. That only disconnects the session and MT5 keeps running. Sign out in the Start menu ends every program, including your EAs.

    Remote Desktop window with the close button highlighted and the message “Your remote session will be disconnected” with an OK button. The Start menu shows “Sign out” as the wrong way.203.0.113.25 - Remote Desktop ConnectionAdministratorChange account settingsLockSign outSign out = MetaTrader closesRemote Desktop ConnectionYour remote session will be disconnected.Programs on the remote computer keep runningwhen you reconnect later.Don't show this message againOKCancel12
    Open drawing full size
  8. Step 8: Check the ping in MT5

    Bottom right in the status bar MT5 shows the connection and the ping in milliseconds. Click it to open the list of access points; Rescan servers makes MT5 look for the fastest one. If the value is far above what the provider states for your location, the data centre is wrong.

    MetaTrader 5 window with the status bar reading “12.4 ms” highlighted, the list of access points with ping values open and the entry Rescan servers.12345678 - Broker-Demo: Demo Account - Hedge - [EURUSD,H1]FileViewInsertChartsToolsWindowHelpAlgo TradingNew OrderM1M5M15M30H1H4D1W1MNNavigatorBroker MetaTrader 5AccountsIndicatorsExpert AdvisorsExamplesMyEAScriptsServicesMarketEURUSD, H1Euro vs US DollarMyEATradeExposureHistoryNewsMailboxCalendarExpertsJournal10:01:58.020 Network '12345678': authorized on Broker-Demo10:01:58.144 Network ping to current access point: 12.4 msFor Help, press F1Default12.4 msRescan serversAccess Point EU 1 · 12.4 msAccess Point EU 2 · 14.9 msAccess Point US 1 · 81.0 ms123
    Open drawing full size
  9. Step 9: Run a short weekly check

    Once a week, ideally at the weekend: connect via RDP, check the ping and the Algo Trading button, scan the Experts and Journal tabs for errors, install Windows updates, reboot and confirm that autostart worked. Then disconnect again.

    Checklist “Weekly VPS check” with seven items; status bar ping and Windows Update with reboot are highlighted.Weekly VPS check — SaturdayLog in via Remote Desktopsession still there, terminals openStatus bar pinggreen bars, same ms as last weekAlgo Trading button onicon top right of each EA chart activeExperts + Journal tabsno repeated errors, no disconnect loopsWindows Updateinstall, reboot, confirm autostart workedFree disk space and RAMlogs not filling the diskDisconnect, do not sign outclose the RDP window12
    Open drawing full size

Alternatives to your own VPS

Free VPS from the broker: many brokers provide a VPS above a minimum balance or trading volume, usually already in the right data centre. Setting it up works exactly as above. Which brokers offer it on which terms is listed in Brokers with a free VPS.

MetaQuotes virtual hosting: in MT5 you can rent a virtual server from the platform vendor via the Navigator (right-click the account → Register a Virtual Server). The terminal transfers charts, EAs and settings by migration. There is no desktop though, one account per server, no DLL calls, and every change in the local terminal has to be migrated again. Convenient for a single simple EA, not for several terminals or tools that need DLLs.

Your own VPS provider: full control over Windows, as many terminals as you like, free choice of location. Providers are compared in Best forex VPS. These three have locations in LD4 and/or NY4:

Partner links: if you order through them, we receive a commission. The steps above work with any Windows VPS.

Common pitfalls

  • EA not running after a reboot: the startup shortcut is missing or points to another terminal. Check the Startup folder and reboot once as a test.
  • High ping despite a VPS: wrong data centre, or MT5 is connected to a distant access point. Run Rescan servers in the status bar.
  • Terminal freezes: not enough RAM for the number of charts and terminals. Close charts you don't need or move to a larger plan.
  • Windows reboots mid-week: active hours in Windows Update not set. Install updates yourself at the weekend.

Setting up the terminal itself and starting the EA is covered in Install MetaTrader 5 and run an EA. If you run several terminals or plan to move later, use portable mode.

Frequently asked questions

Which VPS location is right for MetaTrader?

The location of your broker's trade server, not where you live. Most forex brokers run in London (Equinix LD4) or New York (NY4). In the same data centre the ping is usually 1–2 ms.

How much RAM does a VPS need for MT5?

One terminal with a few charts runs on 1 vCPU and 2 GB RAM. For two or three terminals 2 vCPU and 4 GB RAM make sense. What matters is guaranteed, not shared, resources.

Does my EA keep running when I close the Remote Desktop window?

Yes, as long as you just close the window (disconnect). If you sign out from the Start menu, Windows ends every program, including MetaTrader and your EAs.

How do I connect to a Windows VPS from a Mac?

With Microsoft's free Windows App (formerly Microsoft Remote Desktop) from the App Store. Add a PC with the VPS IP address and sign in with the user name and password from the provider's email.

Want more tests like this?

The digest arrives on Sundays with new and updated tests based on real accounts. Only when there is news, unsubscribe anytime. About the digest

By subscribing you agree to receive the digest by email. You confirm via a link (double opt-in) and can unsubscribe anytime via the link in every email. Details in the privacy policy.