Ex4 Decompiler on GitHub: Overview & Key Tools

An Ex4 decompiler is a tool that attempts to reverse engineer compiled MetaTrader 4 (MT4) executable files (.ex4) back into human-readable MQ4 source code. This is often used for recovering lost source code, analyzing malware, or understanding proprietary indicators.

Searching for an EX4 decompiler on GitHub mostly leads to "wrappers" or outdated tools rather than a magic "one-click" solution. EX4 files (MetaTrader 4 compiled indicators/EAs) are notoriously difficult to reverse-engineer since MetaQuotes significantly hardened their encryption and bytecode in later builds (600+).

Extracts metadata and identifies trading logic, indicator calls, and string patterns.

Status: This repository was archived in September 2020 and is now read-only.

Modern builds use complex execution paths to hide strategy logic. Incomplete Output

Title: A Treasure Trove of Tools with a Minefield of Caveats – The "EX4 Decompiler" Scene on GitHub

Most GitHub repositories for this topic are either CLI wrappers for older, proprietary decompilers or debugging tools rather than full "one-click" source code restorers. Notable GitHub Projects

pip install -r requirements.txt
  • While GitHub is a goldmine for MQL4 libraries and indicators, a functional EX4 decompiler is a "white whale." Most repositories you find will either be outdated or highly technical tools for reverse engineers. If you’ve lost your source code, your best bet is often a manual rewrite rather than relying on automated decompilation.