MetaTrader indicator file
File type: Accounting, financial and tax file
A .mql file is a source file for a custom indicator used by MetaTrader. It contains MetaQuotes Language code that defines how the indicator analyzes and displays market data.
File type category:
Accounting, financial and tax file
Date updated: October 28, 2026
The .mql file extension is associated with MetaTrader, a trading platform used by brokers and traders on Microsoft Windows. An MQL indicator can display market conditions, calculations, or other analysis for selected financial instruments.
The file contains the indicator's source code rather than the platform's compiled indicator. It belongs to the MetaTrader development workflow and can be edited and compiled with MetaEditor, which is included with MetaTrader. The exact language version and resulting compiled file depend on the MetaTrader release being used.
On Microsoft Windows, open the .mql file with MetaEditor from the associated MetaTrader installation. MetaEditor can display and edit the source code and compile the indicator for use in MetaTrader.
If MetaEditor is not available, the file can be viewed as plain text, but a text editor will not compile or install the indicator.
An .mql file is source code, so it does not have a useful general-purpose conversion format. Open it in MetaEditor and compile it for the appropriate MetaTrader version instead.
Moving the indicator between different MetaTrader language versions may require changes to the source code; it is not necessarily a direct conversion.
2F 2A 5B 5B 0D 0A
/*[[..
Software applications that can open mql files:
Microsoft Windows
Software applications that can edit mql files:
Microsoft Windows
Software capable of saving mql files:
Microsoft Windows
Software apps that create mql files:
Microsoft Windows
Software applications that handle other tasks involving mql files:
Microsoft Windows