tocOn this page 7 sections
A Market EA's .ex5 file is tied to the machine it was activated on, so copying it to a new VPS does not move the license. To move without losing activations, record what you own and how many activations remain, finish sizing and patching the new VPS first, then install each product from the terminal's Purchased list exactly once. An activation used on the old server cannot be reclaimed, so the aim is to spend one per product on a server you will not change afterwards.
How Market activations work
- Copied files will not run. Products installed from the Market live in
MQL5\Experts\MarketandMQL5\Indicators\Market(MT4:MQL4\...\Market) and only load on the machine that activated them. - One activation per machine. Several terminals on the same VPS, signed in to the same MQL5 account, normally share one activation.
- Hardware changes count as a new machine. A Windows reinstall, a move to another host or a resize that changes the virtual CPU or board can trigger a new activation.
- The seller sets the limit. The product page shows it. When activations run out, only the seller or MQL5 support can help; otherwise you buy again.
Step 1: Inventory the old VPS
Connect over RDP and open PowerShell as Administrator. This lists every Market expert and indicator in all standard terminal data folders:
Get-ChildItem "$env:APPDATA\MetaQuotes\Terminal\*\MQL?\*\Market" -Include *.ex4,*.ex5 -Recurse -ErrorAction SilentlyContinue |
Select-Object Name, DirectoryName, LastWriteTime |
Sort-Object Name | Export-Csv C:\mt-backup\market-inventory.csv -NoTypeInformation
For terminals started with /portable, replace the path with the install folder, for example C:\MT5-Live\MQL5\*\Market. In each terminal, File > Open Data Folder confirms which folder it really uses.
Then open the Purchased list (in the terminal or your MQL5.com profile) and write the remaining activations next to each product in the CSV. Any product with one activation left is critical: if that install goes wrong, there is no spare.
Step 2: Back up the unlicensed files
Settings and layouts are plain files and copy freely. From each data folder, run:
$src = "$env:APPDATA\MetaQuotes\Terminal\<ID>"
foreach ($d in 'MQL5\Presets','MQL5\Files','profiles','config') {
robocopy "$src\$d" "C:\mt-backup\<ID>\$d" /E /R:1 /W:1
}
Compress-Archive C:\mt-backup C:\mt-backup.zip
Presets holds your .set input files, profiles holds chart layouts, Files holds data an EA reads or writes, and config holds server lists. Do not copy the Market folders. For templates, indicators and your own EAs, follow the full MT4/MT5 migration walkthrough.
Step 3: Lock in the new server first
- Final plan size. Work out RAM and vCPU for every terminal now, using sizing a VPS for multiple MT4 and MT5 terminals. A later resize can change the virtual CPU.
- Final location. A different data center means a different machine.
- Patch and reboot. Run
sconfigoption 6 or Settings > Windows Update until nothing is pending, then reboot. - Record a hardware baseline. You can compare it after maintenance to see whether the VM moved:
Get-CimInstance Win32_ComputerSystemProduct | Select-Object UUID
Get-CimInstance Win32_Processor | Select-Object Name, ProcessorId, NumberOfLogicalProcessors
Get-CimInstance Win32_BaseBoard | Select-Object Manufacturer, SerialNumber
These are not the exact values MetaTrader hashes, but if they change, assume Market products may need reactivating and check them before the next session.
Step 4: Activate once on the new VPS
- Install MetaTrader and create every terminal folder you plan to use. With several terminals, set up the layout first, as in several terminals on one VPS with /portable.
- In each terminal, open Tools > Options > Community and sign in with the MQL5 login that bought the products.
- Open the Toolbox (Ctrl+T), go to Market > Purchased, and click Install on one product.
- Check the Journal tab for errors, drag the EA onto a chart and load its .set file. In MT5, the cap icon in the chart's top-right corner should be blue and Algo Trading should be on. In MT4, look for the smiley face and AutoTrading.
- Only then install the next product. Never click Install again on a product that just failed: read the Journal and Experts tabs first, because a retry can cost another activation.
- Restore
Presets,profilesandFileswith robocopy, restart the terminal, rerun the inventory script, and compare the CSVs.
Step 5: Cut over
Disable Algo Trading on the old VPS so two servers never trade the same account, and keep it running for at least one full trading session as a fallback. Cancel it only when every product appears in the new inventory. If you are still choosing the target server, see the Windows VPS for forex trading page for locations and plans.
FAQ
Can I deactivate an EA on the old VPS to get the activation back?
No. Used activations stay used. Ask the seller or MQL5 support before the move if you are down to your last one.
Will a reboot or Windows Update use another activation?
Normal reboots and patches should not. A full OS reinstall, a host migration or a resize that changes the vCPU or board can, so compare the hardware baseline after any maintenance.
Do rented Market products work the same way?
Yes. A rental has its own activation limit for the rental period, so the same inventory and activate-once approach applies.
Run this on your own Windows VPS
Get a Windows VPS from WindowsVPS in about 60 seconds, with full Administrator access over RDP, NVMe storage and the Windows license included.
Written by the WindowsVPS Team
We run Windows Server VPS hosting and write these guides from the same setups our customers use: RDP, PowerShell, trading terminals and always-on bots. Questions about a guide? Contact us.