GuideUpdated 27 November 20269 min read

Install a Market EA on a VPS from the terminal itself, how MQL5 activations work, how not to waste them, and what to do when you move to a new VPS.

In short
  • Install the EA from the terminal on the VPS: enter your MQL5.community account in Tools, Options, Community, open your purchases in the Market and click Install.
  • Copying Market EA files from your PC does not work: a Market product is bound to the hardware and the copy of the operating system it was activated on.
  • Each purchase comes with at least 5 activations (one used at purchase), up to 20 if the seller allows. A new VPS or a reinstalled operating system uses one; removing the product does not give it back.
  • One activation covers any trading account, any broker and several terminals on the same computer.
  • When you move to a new VPS, install from your purchases there, attach the EA with algo trading off, stop it on the old VPS, then switch it on.

To install an EA you bought on the MQL5 Market on a VPS, install it from the terminal running on the VPS: enter your MQL5.community account in the terminal settings, open your purchases in the Market and click Install. Copying the files over from your PC does not work, because a Market product is locked to the computer it was activated on. Each install on a new computer uses one activation and a purchase includes at least five, so the order in which you do things decides how many you have left for the next VPS.

Four steps on the VPS: enter the MQL5 account, open your purchases, click Install, attach the EA to a chart
The whole install happens inside the terminal on the VPS; step 3 is the one that uses an activation.

How MQL5 activations work

An activation is the creation of a protected copy of the product for one computer (Market rules, IV.17). For a VPS, the rules translate like this:

Rule (MetaQuotes)What it means on a VPS
A purchased product is bound to the devices and the copy of the operating system it was activated on, and stays blocked even after a reinstall of the same operating system or a replacement with identical hardware (rules IV.15)Market files copied from your PC will not run on the VPS. Reinstalling the VPS operating system later counts as a new computer.
At least 5 activations per purchase, including the one used at purchase; the seller can set up to 20 (rules IV.18)PC, first VPS, a reinstall and a move to a second VPS already use four of the minimum five.
The number is fixed when you buy (rules IV.19)A seller who lowers it later does not take activations from you.
Activation is not linked to a trading account; the product works "with any accounts and brokers within the computer" (MetaTrader 5 help)Changing account or broker on the same VPS uses no activation.
One activation covers several platforms "installed within one PC" (MetaTrader 5 help)Several terminals on one VPS share the activation of that VPS.
Activations "are not reset or restored when the product is removed from the device" (MetaTrader 5 help)Cancelling the old VPS does not give its activation back.
After the free activations, a user "will have to purchase them again" (MetaTrader 4 help)Count your activations before you reinstall or move.
New activations always install the latest version; older versions cannot be installed (rules IV.20)A new VPS or a reinstalled one gets the current version of the EA, not the one you ran before.

The exact number is set by the seller, between 5 and 20, and fixed at the moment you buy. MetaQuotes' MetaTrader 5 help says the available activations are displayed on each product page.

Plan the activations before you install

The order that saves activations is to install the EA only where it will trade. A worked example with a product that has the minimum of five activations:

StepActivations usedLeft
Bought in the terminal on your home PC to try it there14
Installed on the first VPS13
VPS operating system reinstalled after a problem12
Moved to a new VPS in another city11

If the EA will only ever trade on the VPS, buy it from the terminal on the VPS: the MetaTrader 4 help says a product is tied to the configuration of the PC it was purchased from, so the activation used at purchase is then the VPS's own, and your home PC never takes one. If you want the EA on both your PC and the VPS, that is two activations from the start.

Install the EA on the VPS step by step

Before you start: the VPS runs your broker's MetaTrader 4 or 5, logged in to the trading account, and you have the login and password of the MQL5.community account that bought the product.

  1. Connect to the VPS and open the terminal you want the EA in (how to connect to a Windows VPS with Remote Desktop).
  2. In the terminal, open Tools, then Options, then the Community tab. Enter your MQL5.community login and password and confirm with OK. Do not skip it: without it, MetaQuotes says the list of purchases shows only products downloaded in this terminal, and a purchased product will not start.
  3. Open your purchases.
    • MetaTrader 4: open the Terminal window (View menu, or Ctrl+T), click the Market tab, then Purchased (if no MQL5 account is set, MetaTrader 4 calls this section Downloads and lists only the downloads and purchases made in this terminal).
    • MetaTrader 5: since build 3081 the Market is in the Navigator. Your products are listed under Market \ My Purchases, and MetaQuotes' help describes installing from the Purchased section of the Market.
  4. Click Install next to the product. The terminal downloads a copy made for this VPS, and one activation is used. An Expert Advisor lands in MQL4/Experts/Market/ (MetaTrader 4) or MQL5/Experts/Market/ (MetaTrader 5), so in the Navigator it sits in a Market folder under Expert Advisors.
  5. Drag the EA from the Navigator onto a chart of the symbol and timeframe the seller specifies. In the EA window, set the inputs and allow algorithmic trading, then make sure the AutoTrading button (Algo Trading in MT5) in the toolbar is on (MT5 says algo trading is disabled).
  6. Open the Experts and Journal tabs. If you see the line 'ProductName' requires active MQL5 account in Tools->Options->Community, go back to step 2 in this terminal.

For a second or third terminal on the same VPS, MetaQuotes' help gives a different route: copy the EA file from the Market folder of the first terminal (in its data folder, under MQL4/Experts/Market/ or MQL5/Experts/Market/) into the same folder of the other terminal. Then enter the same MQL5.community account in that terminal's Community tab (step 2), because the MetaTrader 5 help says a product starts only in a terminal logged in to the account that bought it, and carry on from step 5. MetaQuotes says one activation covers several platforms installed on the same computer.

If you use the EA with your own settings, save them in the Inputs tab with Save (a .set file) as soon as the EA runs as you want. You need that file when you reinstall or move.

Updates of a Market EA

Updates of purchased products are free and, in MetaTrader 5, show up within 24 hours of the author publishing them, with an Update button next to the product (MetaTrader 5 help). The new file replaces the old one, so if you depend on a specific version, save a copy of it under another name or outside the Market folder before you click, as the help suggests. The rules leave updating to you (IV.20): an EA running on the VPS does not update itself while you are not looking. The same rule says a new activation always installs the latest version, so a move or a reinstall is also an update.

Moving to a new VPS

  1. Set up the new VPS: install your broker's MetaTrader and log in to the trading account.
  2. On the old VPS, save the EA's inputs as a .set file and copy it to your PC or straight to the new VPS.
  3. On the new VPS, enter the MQL5.community account in Tools, Options, Community, open your purchases and click Install. This uses one activation and installs the latest version of the EA; the old VPS keeps its own until it is deleted, and you do not get it back.
  4. Attach the EA to the same chart, load the .set file, and leave algo trading off.
  5. On the old VPS, remove the EA from the chart or switch algo trading off. Two terminals running the same EA on one account can open the same trades twice.
  6. Switch algo trading on in the new VPS and check the Experts tab.
  7. Cancel the old VPS only when the new one has run for a while without errors.

The rest of the move (charts, indicators, non-Market EAs) is covered in moving MT4 and your EAs from a PC to a VPS.

When it goes wrong

What you seeCauseFix
The product is missing from PurchasedThe terminal is logged in to no MQL5 account, or to another oneSet the account that bought it in Tools, Options, Community
Journal: "requires active MQL5 account in Tools->Options->Community"Same, in this terminalStep 2 above
EA copied from the PC does not start on the VPSMarket products are bound to the computer they were activated onDelete the copied files and install from Purchased
No activations leftThe free activations are used upMetaQuotes' help says they have to be purchased again; next time count them before you reinstall or move
A downloaded demo will not run on a live chartDemo EAs run only in the Strategy TesterBuy or rent the full version
EA is on the chart but does not tradeAlgo trading off, a login with the investor (read-only) password, or an EA settingSee EA not trading on the VPS

When a VPS is not the right choice

  • One account, Market EAs only, and you are happy to manage from your PC. One MQL5 Virtual Hosting terminal works with one trading account, and it runs Market products without using another activation (MQL5 VPS rules, III.2 and V.4). Its ban on DLL calls does not limit Market EAs, because the Market rules already forbid DLL calls in Market products (IV.2). The trade-offs are in MQL5 Virtual Hosting vs your own VPS.
  • You are short of activations. If a move would use your last one, compare the cost of buying the EA again with staying on the current VPS.

How this works on Dipgate

  • Trading VPS is a Windows Server desktop reached with Remote Desktop, where you install your broker's MetaTrader yourself, so the steps above are the same as on a Windows PC. It runs up to 3, 6 or 10 trading platforms (Bronze, Silver, Gold), and one activation covers the terminals on that VPS. The client area has a reinstall-OS option: for each Market product, a reinstall means a new activation, so count them first.
  • Metatrader VPS is an Ubuntu desktop with MetaTrader preinstalled, and Dipgate lists EAs "from a file or straight from the MQL5 Market" among what it does. It runs up to 4, 8 or 16 trading platforms. MetaTrader runs there on Linux, not Windows (what that means). MetaQuotes' activation pages speak of computers and operating systems and say nothing about terminals running on Linux, so after you add the EA to a second terminal there, open the product page and check that the number of available activations has not dropped. The tutorial below was recorded on Metatrader VPS (Linux).
How to Install an EA from the MQL5 Market on Your Dipgate Linux VPS
Video: How to Install an EA from the MQL5 Market on Your Dipgate Linux VPS
  • Metatrader In Cloud is one MetaTrader in the browser with a File Manager for EAs. The steps on this page were written for the two desktop products; for a Market EA on Metatrader In Cloud, ask support before ordering.

FAQ

Does switching broker or trading account on the VPS use another activation?

No. MetaQuotes' help says activation does not link a product to a trading account, and the buyer can use it with any accounts and brokers on the computer where it was activated.

What happens when I run out of activations?

MetaQuotes' MetaTrader 4 help says that after the free activations a user "will have to purchase them again". The number is fixed at purchase, so a seller lowering it later does not affect you.

Are updates of a Market EA free, and do they need a new activation?

Updates of purchased products are free and, in MetaTrader 5, appear within 24 hours of the author publishing them; the Update button downloads the new file over the old one. The Market rules do not say that an update uses an activation.

Can I try a Market EA on the VPS before buying it?

The free demo version of an Expert Advisor cannot run on a live chart. It runs only in the Strategy Tester. Some sellers also offer rental for a set period instead of the full price.

Does MQL5 Virtual Hosting use one of my activations?

No. The MQL5 VPS rules (V.4) say Market products need no additional activation on the virtual terminal and the number of available activations is not decreased.