You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
We all know MQL5 is a great language. It provides a full set of functions to deal with the market data and to develop programs and automated strategies.
But sometimes it may not attend to all of our needs. Imagine you want pass a double** ptr to a function. You can't do that in MQL5, because pointers are not pointers to memory addresses, but just references.
Imagine you want to use a static library written in C++ instead of a DLL. Imagine you want to use C++ STL classes in your function and you cannot import functions that uses them as arguments. Imagine you want to create your own UI (MQL panels/dialogs can be really glitchy). Imagine you want to pass data from the terminal to another application (not using network functions). Imagine you just like better C++ over MQL5, I don't know.
Those are some cases that would justify (maybe?) the necessity of calling MQL5 functions directly via C++ code.
That's why I developed MQL++: a library that allows programmers to call MQL5 functions from C++ instead the other way around. The idea behind is simple: MetaQuotes already provided a Python API to interact with the Metatrader terminal. This library just imports the python Metatrader5 module and calls the functions available on it. You can do almost anything that's in the documentation. Some functions are not available yet (because I'm lazy af), but I'm planning to do so.
I believe C++ also has its place when developing financial tools alongside python and MQL5.
If you're interested in trying the library, please check out the github page for more information.
If you're already using the library, your feedback is always valuable.