Skip to content

How to set up a Windows VPS for MetaTrader 5

An expert advisor only manages trades while its terminal is running and connected, so anything that interrupts your computer, including sleep, updates, reboots or a broadband drop, interrupts your risk management too. A virtual private server, a rented Windows machine in a data centre, removes those failure points and is the standard way to run an EA twenty-four hours a day through the trading week. This guide covers choosing a provider and configuring the server so MetaTrader 5 survives unattended.

  1. Choose a suitable VPS provider and plan

    You need a Windows Server VPS with at least 2 GB of RAM, two CPU cores and 40 GB of storage for a single MT5 terminal; more RAM helps if you plan to run several terminals. Prefer an established provider with an uptime commitment of 99.9 percent or better. Forex-specialist VPS hosts and general providers both work; what matters is reliability, not branding. Expect to pay a modest monthly fee, and treat it as part of your trading costs.

  2. Pick a data centre near your broker's servers

    Choose a VPS location close to where your broker hosts its trade servers, which brokers will state on request; London is a common choice for UK and European brokers. Proximity reduces order latency. For a strategy like Grit Markets, uptime and stability matter far more than shaving milliseconds, so never trade a reliable data centre for a marginally closer one.

  3. Connect to the VPS by Remote Desktop

    Your provider will supply an IP address, username and password. On your own computer, open Remote Desktop Connection on Windows, or Windows App on Mac, enter the IP address and log in. You will see a full Windows desktop running in the data centre. Change the initial password immediately to a strong, unique one, since remote desktop servers are constantly probed by automated attacks.

  4. Secure the server

    Before installing anything, take basic hardening steps: create a strong password, enable Network Level Authentication for remote desktop if the provider has not already, apply pending Windows security updates once, and do not install any software beyond what trading requires. If the provider offers two-factor authentication for its control panel, enable it. The server will hold your broker credentials, so treat it with the same care as online banking.

  5. Install MetaTrader 5 and log in to your broker account

    Inside the remote desktop session, download the MT5 installer from your broker's website, not from a third-party link, and install it. Log in with your account credentials and confirm the connection indicator at the bottom right of the terminal shows an active connection to the trade server. Then install Grit Markets by following our installation guide from within the VPS session, including the WebRequest authorisation for https://gritmarkets.com.

  6. Configure Windows so the terminal survives unattended

    Set the Windows power plan to High performance and disable sleep and hibernation, which some VPS images leave enabled. In Windows Update settings, set active hours so automatic restarts fall in the weekend market closure rather than mid-session. Place a shortcut to the MT5 terminal in the Windows Startup folder so the platform relaunches automatically if the server reboots. Note that after an unexpected reboot MT5 reopens, but you should still verify the EA reattached and the Algo Trading button is on.

  7. Test the full setup on a demo account

    Run the complete arrangement, VPS, terminal and EA, on a demo account for at least a week. Disconnect your home computer entirely and confirm trades continue to be managed, which proves the setup does not depend on your local machine. Deliberately restart the VPS once and watch what recovers automatically and what needs a manual step, so you learn this on a demo rather than during a live drawdown.

  8. Set up a monitoring routine

    Decide how you will know if something goes wrong. At minimum, log in by remote desktop once a day during the trading week to confirm the terminal is connected and the EA is running, and enable the MT5 mobile app's push notifications for trade activity on the account. Some VPS providers offer uptime alerts; switch them on. An unmonitored VPS is better than an unmonitored laptop, but it is not a substitute for checking in.

Notes

  • MT5's built-in Virtual Hosting, rented from inside the terminal, is a reasonable alternative to a self-managed VPS: it is cheap and near your broker, but it gives you no Windows desktop and less control. This guide assumes a full Windows VPS.
  • A VPS keeps the software running; it does not reduce the risk of the strategy itself. A Martingale EA on perfect infrastructure can still lose the account it trades. Configure the risk controls first.
  • Never store your dashboard licence key or broker passwords in plain text files on the server.