Testing the new MQL5 compiler for x64 platforms - speed up calculations from 2 to 10 times!
You are missing trading opportunities:
- Free trading apps
- Free Forex VPS for 24 hours
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration Log in
If you do not have an account, please register
As was promised before, the new MQL5 compiler optimized for the 64-bit version of MetaTrader 5 is released.
Full compatibility of the generated code has been preserved for the 32-bit versions of the terminal, as well as for the old terminal versions.
On our MetaQuotes-Demo server it is already possible to upgrade to MetaTrader 5 build 1108, which has the new functionality available. To enable the new optimizing compiler mode it is necessary to add Optimize=1 key in the [Experts] section of the metaeditor.ini file:
Standart compiler tests were used to test the performance of MQL4, MQL5 and C++ compilers. All source files are attached along with the Excel table of results, so that anyone can double-check himself.
For now see the test results in the following environment:
To see the detailed chart, please click on it.
MQL5 is faster than MQL4 by tens of percents to several times. The reason for the loss is the execution environment and 32 bits. MetaTrader 5 has a much more efficient and constantly evolving execution environment.
The developement of the new compiler has taken a very long time, but the benefit turned out to be amazing. There are still questions to the string operation optimizations, but we will try to speed them up as well.
Not all of the optimization methods have been activated yet, as they still undergo testing. Therefore, the results will improve.
How can traders benefit from that?
The ability to make more calculations in the same time and to think less about switching to DLL. This is especially important for those who deal with heavy math.