Besides, in some cases code obfuscation and even its encryption are applied. In this case the logic of program execution becomes closer to the system of processor commands, which has little in common with human logic. The main difficulty is that the compiler optimizes the code trying to make it faster and more compact. The fact is that during the compilation process, as mentioned above, some of the information important for a human being is discarded. It may sound simple, but in fact it is far from it. During decompiling, an attempt is made to convert executable code understandable by a computer into programming code in one of the programming languages, for example MQL4. convert it to the MQ4 formatĭecompilation is essentially the opposite process from compilation. If this is not possible, decompile the file, i.e.Ask the developer to provide the source code.What if you need to make changes in the logic of a trading robot? There are two ways of doing it: In fact, a file with the EX4 extension can only be opened for execution. The downside of this coin is the impossibility to read and edit the machine code. 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.