Opening MQ4 Files

The MQ4 file type is primarily associated with MetaTrader 4.

MQ4File Extension MQ4
File extension: MQ4
File type:  source code file

What is an MQ4 file

MQ4 files mostly belong to MetaTrader 4. MQ4 files are source code files written in MetaQuotes Language 4, used in the MetaTrader trading platform. They store the instructions that power automated trading systems, custom indicators, and scripts.
These files are plain text documents that can be opened with a text editor or, preferably, with the MetaEditor tool that comes with MetaTrader 4. They are sometimes encoded in UTF-16 (LE), so correct encoding settings may be needed to view all characters properly.
Users often modify MQ4 files to adjust trade execution rules or technical indicators, and then compile them into executable files (EX4) for use in the trading terminal.
  • Trading automation: Implement Expert Advisors for automated trading
  • Custom indicators: Develop personal technical analysis tools
  • Scripts: Execute one-time trading tasks
  • FilExt.com tip: Find more details at the MetaTrader 4 website.

    How do you open MQ4 files?

    You need a suitable software like MetaTrader 4 to open an MQ4 file. Without proper software you will receive a Windows message "How do you want to open this file?" or "Windows cannot open this file" or a similar Mac/iPhone/Android alert. If you cannot open your MQ4 file correctly, try to right-click or long-press the file. Then click "Open with" and choose an application. You can also display a MQ4 file directly in the browser:. Just drag the file onto this browser window and drop it.

    Online MQ4 Text Viewer

    Choose your .mq4 file to analyze

    Read our privacy guarantee in Filext’s terms and privacy policy

    Please allow ads on our site

    This helps us keep our servers running. Then re-upload your file to view it.

    Click here to see how to disable the ad blocker for filext.com

    Programs that open and convert MQ4 files:

    1. MetaTrader 4
      See the previous paragraphs to learn more about the main application. MQ4 files are often referred to as MetaTrader 4 developers because this type of file is primarily created or used by this software.
    2. MetaTrader (Indicator) by MetaQuotes Software Corp.
      MetaTrader 4 is an on-line trading platform designed for financial institutions dealing with Forex, CFD, and Futures markets. The identifying characters used for this association are - Hex: 2F 2F 2B 2D, ASCII: //+-.

    MQ4 file format:

    To view or edit MQ4 files you need to know the file format, because it determines how the data in this file is stored. Often, the file format can be deduced from the file extension or the initial bytes (called the signature). File extension, signature and file format must match; otherwise errors will occur when the file is opened. When there is a problem with a file, the first step to solving it is to determine the file format. Below is our analysis of the MQ4 files:

    MQ4 is not that commonly used as a file extension. This file type is used by different programs with different formats. But the following two file formats are common:

    All the rest of the MQ4 files (25%) have different formats, frequently e.g. property. These files sometimes refer to trend, indicator or pivot. If you want to find out what your MQ4 file contains, drag and drop it onto this page.

    Technical Data for MQ4 File Extension

    File classification:
    Developer
    Identifier:
    Hex: 2F 2F 2B 2D, ASCII: //+- (provided by TrID database)
    Related files:
    ex4, mqh, mq5, ex5, mql, tpl, url, afl, srv, rar, pdf, set, note, jpg, exe, zip, dll

    The following listing is compiled from the database produced by the 'Associate This!' program, selected data from the main FILExt database and file extension information submitted by users.

    ProgramID: MQLEditor4.File
    EXEFile: %ProgramFiles%\Interbank FX Trader 4\metaeditor.exe


    an mq4 source code file is a special file format and should only be edited and saved with the appropriate software.

    How to solve problems with MQ4 files

    • Associate the MQ4 file extension with the correct application.
    • Update your software that should actually open source code files. Because only the current version supports the latest MQ4 file format. Search, therefore, e.g. on the manufacturer website after an available MetaTrader 4 update.
    • To make sure that your MQ4 file is not corrupted or virus-infected, get the file again and scan it with Google's virustotal.com.
    • Click here to open your .MQ4 file online - secure, fast, and no downloads needed.
    Drop here
    View another file
    MQ4 file viewer MQ4 file description