How to copy Expert Advisors from your home PC to a VPS

When you order a Forex VPS, copying your Expert Advisors (EAs) and their settings to the new server saves you from having to configure everything manually. This guide outlines the steps to transfer your EAs.

Connect your home PC's disk to the VPS

First, create a connection between your home PC and the VPS to enable file transfer. Follow the steps in our dedicated article: How to connect to a Windows server.

Allow experts to run on the VPS

Once you've set up the connection, allow EAs to run on the VPS:

  1. Open MetaTrader on the VPS.
  2. In the main menu, select ToolsOptions.
  3. Switch to the Expert Advisors tab.
  4. Make sure the following options are checked:
    • Allow algorithmic trading
    • Allow DLL imports

Expert Advisors options in MetaTrader

Export EA files from your home PC

EAs consist of several files located in the Experts, Libraries, and Presets folders inside the MetaTrader data folder.

  1. Open MetaTrader on your PC.
  2. In the main menu, go to FileOpen Data Folder.

Open Data Folder option in MetaTrader File menu

  1. A new Explorer window will open. Find the MQL5 or MQL4 folder and open it.

MQL5 folder in MetaTrader data directory

  1. Copy the Experts, Libraries, and Presets folders from that location to your desktop or another easily accessible location.

Copying Experts, Libraries and Presets folders

  1. On the VPS, navigate to your home PC's connected drive and find the exported folders there. Copy them to the VPS desktop.

Import EA into MetaTrader on the VPS

  1. On the VPS, open MetaTrader.
  2. In the main menu, go to FileOpen Data Folder.
  3. In the Explorer window that opens, navigate to the MQL5 or MQL4 folder.
  4. Copy the Experts, Libraries, and Presets folders from the VPS desktop into this folder. Confirm overwriting if prompted.
  5. In MetaTrader, in the Navigator panel, expand Expert Advisors, then expand Advisors. Right-click the Advisors folder and select Refresh. The newly copied EA should appear.

Refreshing the Advisors folder in MetaTrader Navigator

On this page