How to Set Up a VPS for MetaTrader: A Step-by-Step Guide

A walkthrough of provisioning a Windows VPS, installing MT4 or MT5, and configuring auto-login, auto-restart, and basic security so your terminal keeps running after you close your laptop.

If you've already decided you need a VPS to keep an EA or copy trading setup running around the clock, the hard part isn't the decision — it's the setup. Getting this wrong usually doesn't look dramatic. It looks like your terminal quietly logged out after a Windows update, or AutoTrading switched off and nobody noticed for three days. This guide walks through how to set up a VPS for MetaTrader properly, from provisioning the server to proving it survives a reboot without you touching it.

We'll cover ordering a Windows VPS for forex trading, connecting to it, installing MT4 or MT5, and the two settings that actually determine whether your automation keeps working: auto-login and auto-restart. We'll also cover basic security, because an exposed VPS with default settings is a real risk, not a theoretical one.

This assumes you've already chosen to use a VPS and picked a provider, or are about to. If you haven't compared providers yet, treat Step 1 as a quick refresher rather than the full buying decision.

Before You Start: What You'll Need

Have these ready before you start the clock on any downtime:

Having all four ready means you can do this in one sitting instead of stopping halfway to go digging through old emails for a broker server name.

Step 1: Choose a Provider and Region

If you've already picked a provider, skip ahead. If not, the decision is simpler than the marketing makes it look. Three things matter:

Once you've matched region and specs to your needs, move on to provisioning.

Step 2: Provision Your Windows VPS

Most providers follow a similar order flow:

  1. Select a Windows Server plan (the RAM/CPU tier you settled on in Step 1).
  2. Choose your region — the data centre location closest to your broker's server.
  3. Complete the order. Within a few minutes (sometimes up to an hour with smaller providers), you'll receive an email containing your IP address, username, and password.
  4. Keep that email somewhere safe but accessible — you'll need those three details every time you reconnect.

At this point you have a live, empty Windows machine sitting somewhere in a data centre. Nothing is installed on it yet. The next step is getting onto it.

Step 3: Connect to Your VPS via Remote Desktop

A VPS for expert advisors is only useful once you can see its desktop and control it like a normal computer. That's what Remote Desktop does — it streams the VPS's screen to your own device.

Connecting from Windows

Windows includes a Remote Desktop Connection app by default, so there's nothing to install.

  1. Open Remote Desktop Connection (search for it in the Start menu).
  2. Enter the VPS IP address in the "Computer" field.
  3. Click Connect, then enter the username and password from your provider's email.
  4. You'll likely see a certificate warning, since the VPS doesn't have a recognised security certificate by default. Accept it to continue — this is expected and not a sign anything is wrong.

Within a few seconds you should see a Windows desktop that isn't your own.

Connecting from Mac

macOS doesn't include a Remote Desktop client, so you'll need to download one first.

  1. Install Microsoft Remote Desktop from the Mac App Store (it's free).
  2. Open the app and select Add PC.
  3. Enter the VPS IP address as the PC name.
  4. Add the username and password from your provider's email, then save and connect.

The experience is functionally identical to Windows once you're connected — you're looking at a full Windows desktop running inside a window on your Mac.

Step 4: Install MetaTrader 4 or 5 on the VPS

A mistake worth avoiding here: don't try to copy your existing MT4/MT5 folder from your own PC onto the VPS. It's slower, it can bring over settings that don't translate cleanly, and it skips the licensing/registration step that a fresh install handles automatically. Installing from scratch takes a few minutes and avoids all of that.

  1. Inside the VPS's remote desktop session, open a web browser (Edge is pre-installed on Windows Server).
  2. Go to your broker's website and download the MT4 or MT5 installer — the same link you'd use on your own computer.
  3. Run the installer. It behaves exactly as it would on a normal PC: accept the license, let it install, and let it launch automatically when done.
  4. Confirm the terminal opens and shows the normal login dialog. If it opens cleanly, the install is done.

This is also the moment to decide MT4 vs MT5 if you haven't already — whichever your broker and EA/signal source actually support, since the two aren't interchangeable for most automation tools.

Step 5: Log In and Enable Auto-Login

This step is the actual point of the whole exercise. A VPS that's running but not logged into your trading account is just an empty terminal.

  1. In the login dialog, enter your account number, password, and server name exactly as provided by your broker.
  2. Before clicking Login, tick "Save password." This is the setting that makes the difference between a VPS that reconnects automatically after a reboot and one that sits at a blank login screen waiting for you to notice.
  3. Click Login and confirm the terminal connects — you should see live prices updating and your account balance showing in the terminal window.

With "Save password" checked, MetaTrader will remember these credentials and attempt to reconnect on its own the next time it opens, which matters enormously once auto-restart is involved later.

Step 6: Enable AutoTrading and Algo Permissions

This is the single most common reason an EA or copy trading setup looks "connected" but silently does nothing: AutoTrading is switched off, or algo trading permissions were never enabled on this specific installation. These settings don't carry over from your home PC — they need to be set directly on the VPS copy of the terminal.

  1. Look at the main toolbar in MT4/MT5 for the AutoTrading button. When it's active, it shows green; when it's off, it shows red/grey.
  2. Click it to turn it on if it isn't already.
  3. Go to Tools > Options > Expert Advisors and check "Allow Algo Trading" (MT5) or the equivalent EA permissions tab in MT4.
  4. If you're running a specific EA, open its properties and confirm "Allow live trading" is also ticked within the EA's own settings dialog, separate from the global toolbar toggle.

It's worth clicking into an open chart afterwards and confirming the EA's smiley-face icon (MT4) or equivalent status indicator shows active, not a frown or a warning triangle. A green toolbar button with a disabled EA icon is still a setup that won't trade.

Step 7: Set Up Auto-Restart So MetaTrader Never Stays Offline

Windows restarts periodically for updates. Terminals occasionally crash. None of that should mean your EA is offline until you happen to log back in and notice. This is the step that actually delivers 24/7 uptime rather than just "uptime until something reboots."

Set up a Task Scheduler task to relaunch MetaTrader automatically:

  1. Open Task Scheduler on the VPS (search for it in the Start menu).
  2. Select Create Task (not the simplified wizard — the full dialog gives you more control).
  3. Under the General tab, name the task something recognisable, like "Launch MT4," and tick "Run whether user is logged on or not."
  4. Under Triggers, add two triggers: one set to "At log on" and one set to "At startup." Covering both means the terminal relaunches whether Windows restarts cleanly or the session simply logs back in.
  5. Under Actions, set the action to Start a program, and point it at your MT4 or MT5 terminal's .exe file (usually in the installation folder under Program Files).
  6. Save the task, entering the VPS admin credentials when prompted.

Set Windows Update active hours to avoid an automatic restart landing during a live trading session: go to Settings > Windows Update > Advanced options > Active hours, and set a window that covers the period you most need the terminal uninterrupted. This doesn't stop updates happening, it just steers forced restarts away from your busiest trading hours.

Together, these two settings mean a reboot — planned or not — ends with MetaTrader open and logged in again on its own, rather than sat idle until you remember to check.

Step 8: Harden Your VPS Security

A VPS with a weak or default password and an open default Remote Desktop port is a visible target — scanning tools look for exactly that combination. A few steps close most of the obvious gaps:

None of this makes the VPS impenetrable, but it removes the low-effort opportunistic access attempts that default settings invite.

Step 9: Test That Everything Survives a Reboot

Don't take any of the above on faith — prove it before you trust it with live trades.

  1. Restart the VPS manually, either from within Windows or via your provider's control panel.
  2. Wait around five minutes for it to fully come back up.
  3. Reconnect via Remote Desktop using your (possibly new) port and credentials.
  4. Confirm, without touching anything: - MT4/MT5 is open. - It's logged into your broker account and showing live prices. - AutoTrading is still enabled (green toolbar button). - Your EA's status icon shows active, if applicable.

If all of that is true without you clicking a single thing, the setup works. If any part of it failed — terminal didn't launch, login didn't persist, AutoTrading reverted to off — go back to the relevant step rather than assuming it'll sort itself out next time. A VPS that only works when you're watching it defeats the purpose of having one.

It's worth saying plainly: even a correctly configured VPS doesn't change the fact that trading carries risk and losses are possible. What it fixes is uptime and reliability of execution, not the outcome of any given trade.

If the only thing you actually need continuous uptime for is copying Telegram signals into MT4 or MT5 — rather than running a custom EA — it's worth knowing that's a narrower problem than a full VPS solves. MarketSync handles that specific case as a cloud-based service, reading signals and placing the trades without any VPS or software installation at all. For EAs or anything beyond signal copying, a VPS set up as above remains the right tool.

Frequently asked questions

How much does a VPS for MetaTrader typically cost per month?

Pricing varies by provider, region, and the RAM/CPU tier you choose, and changes over time, so it's worth checking current plans directly with providers rather than relying on a fixed figure. Smaller single-EA setups generally cost less than plans built for multiple terminals or heavier memory use.

Can I run multiple MT4 or MT5 terminals on the same VPS?

Yes, as long as the VPS has enough RAM and CPU to handle them without lagging — this is exactly why Step 1's sizing guidance matters more once you're running more than one terminal. Each terminal installation and its auto-login/auto-restart setup need to be configured separately, since they don't share settings.

Does using a VPS actually improve trade execution speed?

It can, mainly by reducing the physical and network distance between your trading terminal and your broker's trade server, provided you picked a data centre region close to that server as covered in Step 1. It won't fix execution issues caused by your broker's own infrastructure or market conditions, so it's not a guaranteed speed fix in every case.

What happens to my trades if the VPS provider has an outage?

If the VPS goes offline, your terminal goes offline with it, meaning any EA or copy trading running there stops placing or managing trades until service is restored. Existing open positions remain with your broker regardless — the VPS going down doesn't close trades — but nothing new will be opened or managed while it's unreachable.

Can I use a free VPS for running MetaTrader long-term?

Free or trial VPS tiers are generally meant for short-term testing rather than continuous live trading, and often come with resource limits or time caps that work against the reliability you're trying to build with auto-restart and auto-login. For anything running real money continuously, a paid plan sized properly for your setup is the more dependable choice.

Do I need a VPS if I'm only copy trading and not running an EA?

Not necessarily. If your only automation need is copying signals from Telegram into MT4 or MT5, that's a narrower job than a full VPS is built for, and cloud-based services exist that handle it without installing any software or running a terminal continuously yourself. A VPS becomes more clearly worth it once you're running custom EAs, backtesting, or need a dedicated terminal environment beyond signal copying.

Next steps

Once the test in Step 9 passes cleanly, the setup is done — the main ongoing task is just checking in occasionally to confirm Windows updates haven't changed anything and that your broker hasn't pushed a terminal update that needs reconfirming. If what you actually need was never the full EA-hosting setup but just reliable signal copying, it's worth weighing a cloud-based option like MarketSync against the time and maintenance a VPS asks for before committing to one purely for that purpose.

Frequently asked questions

How much does a VPS for MetaTrader typically cost per month?

Pricing varies by provider, region, and the RAM/CPU tier you choose, and changes over time, so it's worth checking current plans directly with providers rather than relying on a fixed figure. Smaller single-EA setups generally cost less than plans built for multiple terminals or heavier memory use.

Can I run multiple MT4 or MT5 terminals on the same VPS?

Yes, as long as the VPS has enough RAM and CPU to handle them without lagging — this is exactly why Step 1's sizing guidance matters more once you're running more than one terminal. Each terminal installation and its auto-login/auto-restart setup need to be configured separately, since they don't share settings.

Does using a VPS actually improve trade execution speed?

It can, mainly by reducing the physical and network distance between your trading terminal and your broker's trade server, provided you picked a data centre region close to that server as covered in Step 1. It won't fix execution issues caused by your broker's own infrastructure or market conditions, so it's not a guaranteed speed fix in every case.

What happens to my trades if the VPS provider has an outage?

If the VPS goes offline, your terminal goes offline with it, meaning any EA or copy trading running there stops placing or managing trades until service is restored. Existing open positions remain with your broker regardless — the VPS going down doesn't close trades — but nothing new will be opened or managed while it's unreachable.

Can I use a free VPS for running MetaTrader long-term?

Free or trial VPS tiers are generally meant for short-term testing rather than continuous live trading, and often come with resource limits or time caps that work against the reliability you're trying to build with auto-restart and auto-login. For anything running real money continuously, a paid plan sized properly for your setup is the more dependable choice.

Do I need a VPS if I'm only copy trading and not running an EA?

Not necessarily. If your only automation need is copying signals from Telegram into MT4 or MT5, that's a narrower job than a full VPS is built for, and cloud-based services exist that handle it without installing any software or running a terminal continuously yourself. A VPS becomes more clearly worth it once you're running custom EAs, backtesting, or need a dedicated terminal environment beyond signal copying.