The compilation allows to get the high speed of execution, which is crucial for trading on the FOREX market. The executable file of the trading robot for MetaTrader 4 has the EX4 extension. Unnecessary information, such as comments, names of variables and functions, is discarded. If no errors are found, the compiler creates an executable file from the source code.
The compilation process checks the syntax and logical consistency of the source code. What is compilation?Ĭompilation is the process of convertation of the program text, comprehensible to man, into the executable code, comprehensible to a computer. However, before the trading robot can be run, it must be compiled. The code of a trading robot is created in the MQL4 programming language using the MetaEditor program and saved in the MQ4 format.
A trading robot is a software that automates the process of making deals on the market. This is the most popular trading platform on the FOREX market, which is also the execution environment for trading robots. Why is it so and how to do it? Let's find out!įiles with EX4 extension can be run only by MetaTrader 4 application. However, before you open an EX4 file in MetaEditor you must save it as MQ4. It is a program code editor for MQL4 language and compiler at the same time. The EX4 opener is the MetaEditor application which is part of the MetaTrader 4 software package.