Loading…

Terminal Migration Manifest

Moving to a new terminal, a new machine, or a new broker's platform build usually starts with "copy the MQL4 folder." That preserves files, but it does not tell you what was actually in use: which indicator was applied to which chart, on which subwindow, or that a symbol had been added to Market Watch and nowhere else. None of that lives in a file you would remember to check before wiping the old install. This script does not try to copy the Experts, Indicators, Templates or Presets folders itself - an MQL4 program cannot read outside its own sandbox, and a script that quietly failed to do that and said nothing would be worse than useless. Instead it writes down what those folders need to contain, by reading the state that is genuinely available from script context: every open chart's symbol and timeframe, every indicator attached to every window of every chart, the expert running on the chart the script itself was dropped on, the full Market Watch symbol list, and the sandbox file listing with sizes. The result is a checklist, not a backup. Read it before you start copying folders by hand, and you will know exactly which indicators need to be reattached and to which charts, rather than reconstructing it from memory after the fact. Notes and limitations - Cannot see the Experts, Indicators, Templates or Presets folders. No MQL4/MQL5 program can read outside its own sandbox - the report tells you the data path so you can copy those folders yourself, and lists what was attached so you know what to reattach. - The expert name is reported only for the chart the script runs on. There is no function that reports another open chart's expert by name from script context, so run the script from whichever chart is running the expert you most need recorded, or note the others by hand. - Reads the state of open charts at the moment the script runs. Close a chart first and its entry will not appear. - Sandbox listing goes one level deep into subfolders by name only; it does not recurse further or total their contents.

Script · MT4 · v1.0 · Free

About Terminal Migration Manifest

Terminal Migration Manifest is a script for MetaTrader 4. It can alert you with a pop-up, sound, email or push message. It has 3 settings, such as Include files sandbox, List subfolders and Delimiter. MQL source code included.

Files in the download: TerminalMigrationManifest.ex4, TerminalMigrationManifest.mq4, TerminalMigrationManifest.txt.

Settings

SettingDefaultWhat it does
Include files sandboxtrueList MQL4\Files contents with sizes
List subfolderstrueAlso list one level of subfolders inside Files
DelimiterDelimiterCommaCSV column separator

How to install

  1. Download the ZIP from your PolyMaria library and unzip it.
  2. In MetaTrader 4 open File → Open Data Folder, then go to MQL4 → Scripts.
  3. Copy the .mq4 file(s) there. Put any .mqh files in MQL4 → Include.
  4. Open the .mq4 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
  5. Drag the script onto a chart to run it once.

Download the PDF guide

Tags: Alerts · MT4 Script · MQL4 Source Code

MQL4 & MQL5 scripts · PolyMaria