Summary: Step-by-step guide to transferring MT4 data including EAs, indicators, templates, and profiles from PC to VPS, based on personal migration experience.




After the third VPS migration in two months, I finally stopped treating this process as a simple copy-paste job. My client's EA setup involved seventeen custom indicators, five chart templates, and two separate profiles for different trading sessions. The first time I migrated his MT4 to a new VPS, I lost three indicators and spent an entire Saturday rebuilding his chart layouts from memory.

If you've been running EAs for any length of time, you know that copying just the terminal.exe file isn't going to cut it. Your entire trading environment lives in that Data Folder, and knowing exactly which folders to move separates a five-minute migration from a five-hour disaster recovery.

Step 1: Locate the Data Folder, not the Installation Folder



This is the most common mistake I see. People navigate to C:\Program Files (x86)\MetaTrader 4 and copy the entire thing. That's the installation folder, not the data folder. The installation folder holds the executable files, but your EAs, indicators, templates, profiles, and custom settings are stored separately.

On your PC, open MT4, go to File > Open Data Folder. This opens the actual directory where all your custom content lives. That's the folder you want.

Step 2: The Three Folders That Actually Matter



Based on FXCM's official migration guide, you should back up the profiles folder and the templates folder, plus the MQL4 folder which contains your Experts and Indicators. I'll add my own observation here - the profiles folder is way more important than most people realize. It stores your chart layouts, including which symbols are open, which timeframes you're using, and the exact position of every chart window.

The MQL4 folder is where the real action happens:
MQL4/Experts - your .ex4 EA files and source code
MQL4/Indicators - custom indicators
MQL4/Libraries - any DLL files your EAs depend on
MQL4/Scripts - scripts for manual operations
MQL4/Include - header files for custom code

Right-click and copy these three folders to your desktop or a USB drive.

Step 3: The VPS Setup - Two Approaches



According to QuantVPS, there are two methods to get MT4 running on your VPS. Method one is copying the entire installed MT4 folder from your PC directly to the VPS. Method two is downloading a fresh MT4 installer on the VPS and then copying only your custom files over.

I've used both methods, and Method two is more reliable. Here's why: when you copy the entire installation folder, you're also copying environment-specific files that might not work correctly on the VPS's operating system. A fresh install ensures compatibility.

On your VPS, download the MT4 installer from your broker's website, install it, and open the terminal. Then go to File > Open Data Folder on the VPS as well.

Step 4: The Migration Itself



Here's the actual migration process I've refined after multiple attempts:

  • On the VPS, make sure MT4 is completely closed (not just minimized).

  • Navigate to the Data Folder on the VPS.

  • Delete the existing MQL4, profiles, and templates folders.

  • Copy your three folders from your desktop/USB into the VPS Data Folder.

  • Right-click and paste, replacing all existing files when prompted.


  • Here's something the official guides don't mention: on the VPS, before you copy, check the MQL4/Libraries folder for any DLL files. Some VPS environments flag DLLs from external sources as security risks. Right-click each DLL, go to Properties, and if you see an "Unblock" checkbox, click it. I learned this the hard way when an EA that worked perfectly on my Windows 10 PC failed silently on a Windows Server 2019 VPS because the system had locked the DLL.

    Step 5: Post-Migration Checklist



    Once you've pasted everything, close and reopen MT4 on the VPS. Log in to your trading account and verify:

    Your EAs appear in the Navigator panel under "Expert Advisors"
    Your indicators are listed under "Indicators"
    Your chart templates load correctly
  • Your profiles show the correct chart layouts


  • The MQL5 Storage system is another option for keeping your code safe. According to MetaQuotes, MQL5 Storage is a personal online storage for MQL4/MQL5 source codes integrated into MetaEditor, with version control that lets you revert to previous versions. If you're migrating frequently, setting this up saves you from manual file transfers entirely.

    Reference: MQL4 Documentation (docs.mql4.com), FXCM - How do I backup and restore files on MetaTrader 4? (fxcm.com), QuantVPS - How to Migrate MT4 Settings from PC to Your ForexVPS (quantvps.com).

    This article is originally published on FXEAR.com, original content, reproduction without authorization is prohibited.