MQL4 Language Package

If you would like to download the FREE MQL4 Language Package for Sublime Text’s advanced text editor the zip file can be downloaded here:

MQL4 Syntax for Sublime Text


To install the package in the Sublime Text editor you will need to unzip the MQL4 folder into the Packages folder where Sublime Text is installed. An easy way of navigating to this directory is by opening Sublime Text and selecting Preferences > Browse Packages…. Once you have copied the MQL4 folder into this directory, close Sublime Text and reopen it again.

Revision History

The lists below contain information about revisions that were made relative to the previous version:

Version 2.1.0 - 18 March, 2014

Version 2.0.0 - 19 August, 2013

  • Redesigned the tmLanguage pList file using a C template from CJ
  • Fixed iBands applied_price error
  • Fixed #import bug (thanks hilobok)
  • This package has also been submitted to Package Control today and hopefully will be included soon that will allow for automated updates should the need arise in the future if you install MetaQuotes Language through the Package Manager ( Ctrl + Shift + P then Package Control: Install Package then MetaQuotes (MQL4) Language Package )

Version 1.2.0 - 20 April, 2013

  • Improvements made to the syntax file

Version 1.1.3 - 13 April, 2013

  • Git details for installing and updating package added to README
  • Added properties snippets (thanks Ilan Frumer)
  • Added start/indicator template (thanks Ilan Frumer)

Version 1.1.2 - 21 March, 2013

  • Fixed syntax file to incorporate variable declarations that are separated by a comma

Version 1.1.1 - 21 March, 2013

  • Fixed a couple of bugs with the identification of function calls and variables
  • Added string.double.quotes recognition to JSON file

Version 1.1.0 - 16 March, 2013

  • Template folder added in the Snippets directory
  • Enhancements made to detection of extern and static in MQ4 files

Initial Release 1.0.0 - 14 March, 2013

  • Containing snippets of all functions, data types, parameters, constants (including ERR) of MetaTrader 4
  • Syntax files in tmLanguage (and JSON-tmLanguage) of the MetaTrader language (MQL4)

Additional details can be found on GitHub.


All features contained on this site are for educational purposes only and should not be construed as specific investment advice. By viewing this website you understand and agree that or its authors do not offer or provide tax, legal or investment advice and that you are responsible for consulting tax, legal, and/or financial professionals before acting on any information herein.