Skip to main content

VPS for MT5 Expert Advisors: Setup Basics for Beginners

A VPS keeps your MT5 Expert Advisor running when your PC is off, but it does nothing for the strategy. Learn the decision test, the setup steps for both routes, and how a flat VPS fee sits on top of your per-lot costs.

Sofia Petrov

15 min read

VPS for MT5 Expert Advisors: Setup Basics for Beginners

This article

8sections 15min

  1. 01 What You'll Learn, minute 2, about 1 min
  2. 02 Do You Need a VPS for Your MT5 Expert Advisor?, minute 2, about 2 minYou need one if your EA must trade around the clock and you cannot rely on a PC that is always on and connected. Three questions then tell…
  3. 03 How Do You Test MetaQuotes Virtual Hosting With the Free Trial?, minute 4, about 2 minRent nothing until you have used the free 24-hour trial on an EA that already behaves correctly on a demo account. The trial is your…
  4. 04 How Do You Set Up a VPS for MT5 Step by Step?, minute 7, about 2 minFor MetaQuotes hosting, you migrate your terminal in six steps from the desktop client. For a Windows VPS, you rent a 64-bit plan, connect…
  5. 05 How Much Does an MT5 VPS Cost Compared With Your Trading Costs?, minute 9, about 3 minMetaQuotes hosting is cheaper but limited, and a Windows VPS costs more but does more. Either way, the VPS fee is flat and separate from…
  6. 06 What Should You Check After Migration, and Which Mistakes Cost the Most?, minute 11, about 1 minCheck the logs and the trades first, then guard against the handful of mistakes that cost real money.
  7. 07 Conclusion, minute 13, about 1 minA VPS only removes the home-PC point of failure. The three-question test (DLLs, several accounts, other software) picks the route. The free…
  8. 08 Frequently Asked Questions, minute 14, about 1 minYou need one if your EA must keep trading while your PC is off or offline. An MT5 EA only trades while its terminal is running and…

A VPS for MT5 Expert Advisors is a remote computer that stays on, so your EA keeps trading when your PC is off or your Wi-Fi drops. MetaQuotes Virtual Hosting runs one terminal, and its press release listed USD 15 for one month. A VPS does not improve the strategy.

Imagine your EA is halfway through a basket of trades when your laptop goes to sleep at 2 a.m. The terminal disconnects and nothing manages those positions until you wake up. That one gap is the whole reason a VPS exists. Below you will work out which kind you need, test it cheaply, set it up, and see how its cost compares with your trading costs.

What You'll Learn

Do You Need a VPS for Your MT5 Expert Advisor?

You need one if your EA must trade around the clock and you cannot rely on a PC that is always on and connected. Three questions then tell you which type to rent.

What a VPS does (and does not) fix

An MT5 EA only trades while the terminal is running and connected. A VPS is a remote machine that stays on, so the EA keeps running when your PC is off, your Wi-Fi drops or your laptop sleeps.

That is all it fixes. A VPS does not make a weak strategy better, does not remove slippage and does not change market risk. If your EA loses money at home, it will lose it from a data centre too, just more reliably.

A decision test: DLLs, several accounts, other software

Ask these three questions in order:

  1. Does the EA need DLLs? If yes, MetaQuotes Virtual Hosting is out. You need a Windows VPS.
  2. Do you need several terminals, several accounts or a trade copier? A full Windows VPS can run several terminals and copiers. MetaQuotes hosting runs one terminal for one account.
  3. Does the EA need any other software? Virtual Hosting has no desktop and runs nothing else.
A closed laptop with a dimmed screen on a desk next to a glowing server icon with a connected chart
Compares a home PC, where a broken Wi-Fi link stalls the MT5 terminal and EA, with a VPS, where an always-on connection keeps the EA trading.

If you answered no three times, Virtual Hosting is probably enough.

Matching the route to the EA

A simple MQL5 EA on one account suits Virtual Hosting. Anything needing DLLs or extra software needs a Windows VPS. If you run several EAs on one account, read how magic numbers keep their orders separate before you move them.

The two routes at a glance:

  • MetaQuotes Virtual Hosting: rented inside the desktop MT5 client; one terminal, one account; no desktop, no DLLs, no other software; cheaper.
  • Windows VPS from an independent provider: a remote Windows desktop; several terminals, commercial EAs with DLLs and trade copiers; you maintain it; usually costs more.
Pro Tip: If you are unsure, start with the free MetaQuotes trial in the next section. It costs nothing and tells you quickly whether your EA fits.

How Do You Test MetaQuotes Virtual Hosting With the Free Trial?

Rent nothing until you have used the free 24-hour trial on an EA that already behaves correctly on a demo account. The trial is your cheapest dry run.

Rental rules and the 24-hour trial

Per the MQL5.com hosting rules (as of December 2026), rental needs a registered MQL5.com account and the user must be 18 or older. It can only be done through the desktop MetaTrader client on a PC. An MT5 account needs an MT5 virtual terminal.

Each registered user gets a free trial of 1,440 minutes (24 hours), usable in parts, per the hosting rules. The same page lists up to 32 EAs on paid hosting and 16 on free hosting.

Pre-flight: demo test before you migrate

Before migrating, confirm that AutoTrading is on and that the EA opens and closes trades correctly on a demo account. If you have not set up the terminal yet, the guide to installing MT5 on Windows covers the first login. Remember that demo quotes are not identical to live trading, so demo proves the logic, not the fills.

Using the trial as a low-cost dry run

During the trial, watch two things:

  • Does the EA open and close trades the way it does locally?
  • Does the Journal stay free of errors?

Because the minutes can be used in parts, you can test for a few hours, adjust and come back. For illustration, a 6-hour test on Monday and an 18-hour test later in the week would use the full 1,440 minutes.

Warning: The most common beginner mistake is renting before testing on demo. You then pay for hosting while debugging an EA that was never ready.
A three-question decision flow in numbered boxes: DLLs, several accounts, other software
A three-question flowchart helps readers choose between MetaQuotes Virtual Hosting and a Windows VPS based on whether their EA needs DLLs, multiple terminals, or other software.

How Do You Set Up a VPS for MT5 Step by Step?

For MetaQuotes hosting, you migrate your terminal in six steps from the desktop client. For a Windows VPS, you rent a 64-bit plan, connect by Remote Desktop and install MT5 yourself.

MetaQuotes hosting: the six migration steps

  1. Install MT5 on a PC and log in to your trading account.
  2. Add your MQL5.community login in the terminal settings. The terminal prompts you if none is set (MetaTrader 5 Help).
  3. Attach the EA to a chart, confirm AutoTrading is on and check that it trades correctly on demo.
  4. Right-click the account in the Navigator, choose Register a Virtual Server and pick the nearest or lowest-latency hosting point.
  5. Choose what to migrate (chart, EA and settings) and start the migration.
  6. Check the Journal and the Experts tab on the VPS for errors.
Pro Tip: Re-migrate whenever you change EA inputs. The VPS copy does not update itself, so your local tweak is not live until you push it.

Full Windows VPS: plan, connect, install

Choose a 64-bit Windows plan. A workable minimum is 1 vCPU and 2 GB RAM, and 4 GB handles two to three terminals with moderate EA loads.

Then:

  1. Connect by Remote Desktop.
  2. Install MT5 from your broker and log in.
  3. Load the EA and enable algo trading.
  4. Disconnect without closing the terminal. Closing it stops the EA.

Keeping a Windows VPS healthy

A Windows VPS is a computer you now administer. Windows updates and reboots are your job, so set a restart routine and check the EA after each one. Use a strong password and keep the system patched, because a remote desktop open to the internet is a target.

How Much Does an MT5 VPS Cost Compared With Your Trading Costs?

MetaQuotes hosting is cheaper but limited, and a Windows VPS costs more but does more. Either way, the VPS fee is flat and separate from your per-lot cost.

VPS price ranges and the per-account rule

The MT5 Navigator panel with a right-click menu showing Register a Virtual Server and the list of hosting points with latency
MT5 Navigator shows a right-click menu for "Register a Virtual Server," alongside a list of hosting points with latency fields and a six-step migration sequence.

MetaQuotes listed USD 15 per month for one month. Longer terms are reported to step down to about $13 a month for three months, $10.83 for six and $10 for twelve. The main hosting page and the plans page have shown different prices, so check the live price in the terminal before renting.

Independent Windows VPS plans commonly run about $15 to $50 a month; check the provider's own page. Each account needs its own MetaQuotes subscription, so three accounts cost three times the price.

Flat VPS fee vs per-lot cost

A VPS fee does not change your trading costs. A low-volume EA may not justify an expensive VPS. A high-frequency EA pays commission and spread on every trade, so strategy and costs matter more than hosting. If you want to see how the pieces combine, read about calculating all-in cost per lot.

Worked example on EUR/USD with NX Flex terms

NX Flex lets you set commission and spread terms, and change them while the account is flat, with no open positions or pending orders. Swap-free is available on every combination. The dollar-per-pip figures below apply to EUR/USD only.

  • NX One's terms: $6 commission plus 0.5 pips, about $11 all-in per round-turn lot.
  • NX Pro's terms: $5 commission plus the raw market spread.

For illustration, say your EA trades 40 lots a month on NX One's terms. Trading cost: 40 × $11 = $440. Add a $15 VPS: $455 total, or about $11.38 per lot. Now imagine a slower EA trading 4 lots on a $30 VPS: 4 × $11 = $44, plus $30 = $74, or $18.50 per lot. The VPS fee dominates the low-volume case.

To test other terms against your own volume, see the NX Flex backtest cost settings for EA traders and explore NX Flex. No FXNX-specific VPS policy is stated, so check the FXNX website or support. Trading CFDs involves risk of loss, and a VPS does not change market risk.

What Should You Check After Migration, and Which Mistakes Cost the Most?

Check the logs and the trades first, then guard against the handful of mistakes that cost real money.

Post-migration checklist

  • Journal and Experts tab: no errors.
  • Trades match what the EA does locally.
  • Re-migrate after every input change.
  • Note the renewal date.

Mistakes that cost money

  • Renting before demo testing.
  • Forgetting to re-migrate after changing inputs.
  • Assuming a VPS fixes slippage or a bad strategy.
  • Ignoring broker server latency. Pick the location nearest the broker server.
  • Leaving a Windows VPS unpatched or on a weak password.
  • Running more terminals than RAM allows.
A checklist graphic with items: Journal errors, trades match, re-migrate after input changes, renewal date, kill switch

Also know how renewal works. Auto-renewal uses the card you paid with, and if the card fails, the fee is charged to your MQL5 account balance. If you cancel, unused time is credited to your MQL5 account (MetaTrader 5 Help, as of December 2026).

Monitoring and a kill switch

A VPS hides your EA from view, so plan a way to see it and stop it. Set up remote monitoring and a kill switch, such as a way to disable AutoTrading or close the terminal remotely. Test it once while you are calm, not for the first time during a bad trade.

Conclusion

A VPS only removes the home-PC point of failure. The three-question test (DLLs, several accounts, other software) picks the route. The free 24-hour MetaQuotes trial is the cheapest dry run, and the post-migration checklist plus re-migrating after input changes keeps the VPS copy honest.

Remember that a flat VPS fee sits on top of per-lot costs, and for a busy EA the commission and spread terms matter more than hosting. NX Flex lets you set those terms and adjust them later when the account is flat. For VPS questions, check the FXNX website or support.

Your next step: run the decision test, start the trial on a demo-tested EA, then price your monthly lots on EUR/USD at NX Flex before you commit to a plan. Trading CFDs carries risk of loss.

If your EA ran flawlessly all month, would you know whether it was your strategy or your costs deciding the result?

Frequently Asked Questions

Do I need a VPS for MT5 Expert Advisors?

You need one if your EA must keep trading while your PC is off or offline. An MT5 EA only trades while its terminal is running and connected, and a VPS keeps that terminal on.

Can MetaQuotes Virtual Hosting run an EA that uses DLLs?

No. Virtual Hosting runs one terminal with no desktop, no DLLs and no other software. An EA that needs DLLs needs a full Windows VPS.

Is there a free trial for MT5 VPS hosting?

Yes. Each registered MQL5.com user gets a 24-hour (1,440-minute) free trial of MetaQuotes Virtual Hosting, usable in parts (MQL5.com, as of December 2026).

Do I need to re-migrate after changing EA inputs?

Yes. The VPS copy does not update itself, so re-migrate after every change to inputs.

How much RAM does a Windows VPS for MT5 need?

A workable minimum is 1 vCPU and 2 GB RAM. A 4 GB plan handles two to three terminals with moderate EA loads.

Trading CFDs involves risk of loss; better terms do not change market risk.

End of article

General information and education, never investment advice.

CFDs are complex, leveraged instruments with a high risk of losing money rapidly. 64% of retail investor accounts lose money trading CFDs with this provider.

Written by Sofia Petrov.

Quantitative Specialist

All articles by Sofia
Publisher
FXNX Global Markets Ltd
Company
Saint Lucia 2025-00128
Published
December 3, 2026

Next step

Now practise it,
on a demo.

Open an account and practise with virtual money on live prices. No deposit, no ID.

$10,000
Demo balance, ready on your first visit. Or pick $1,000 or $100,000.

Demo results don't predict live results.