Click the "Select File" button above, and choose your MQ4 file.
You’ll see a preview, if available.
Click the "Convert file to..." button to extract text information.
Convert MQ4 to another file type
To convert your MQ4 file to another format, you need MetaTrader 4 or other Developer software.
Convert a file to MQ4
To convert other file formats to the "Trading Script" file type, you need software like MetaTrader 4 or a similar tool.
About MQ4 files
An .MQ4 file contains source code written in the MetaQuotes Language 4 (MQL4), used to program custom trading strategies, Expert Advisors (EAs), and technical indicators for the MetaTrader 4 platform. While these files are human-readable text, they present specific challenges: the trading platform cannot execute .MQ4 files directly - they must first be compiled into binary EX4 files using the MetaEditor. Furthermore, sharing raw .MQ4 files exposes your proprietary trading logic to theft or modification. Users often struggle to open these files on mobile devices or computers lacking the specific development environment. To resolve these issues, converting to PDF is ideal for archiving and safe documentation sharing. For quick code review without an IDE, converting to TXT or HTML ensures compatibility with web browsers and standard text editors.
Convert.Guru analyzes your MQ4 file, detects the exact format, and lets you read the text inside.
If you want to convert MQ4 file to MQ5, EX4, DLL, JS, TS, PY, JAVA, CPP, C, CS, PHP or RB, you can use MetaTrader 4 or similar software from the "Automated Trading Source Code" category. In the File menu, look for Save As… or Export….
To convert SH, PY, KT, PS1, SWIFT, LUA, PL, JAVA, SCALA, JS, VBS or TS files to MQ4, try MetaTrader 4 or another comparable tool in the "Automated Trading Source Code" category.
The MQ4 Converter Story
The history of Convert.Guru began over 25 years ago in California with Tom Simondi’s file-format database. A former contributor to Space Shuttle development and a software pioneer of the 1980s, Simondi established a trusted resource for file type analysis that was even referenced by Microsoft Windows XP. Today, we use modern technology to process and convert thousands of file formats while continually improving our MQ4 converter.