I was wondering if anyone is using C++ to build/test strategies that are comparable with MT4 and MT5 with matching trades?
If you need the speed and performance, then probably C++ will provide you what you need. I also sometimes use it for the initial optimization to narrow down some of the results.
As long as you can direclty translate your mql code to C++, you will get the precision up to 6 decimals. You can achieve even more depending on your knowledge between C++ and mql code.
For example, you can use open, high, low, and close price to test your strategy in C++, in MetaTrader backtester, also set open, high, low and close price mode to check the accuracy of your C++ code.
You will see that result from both code is converging to same number.
Kind regards
![Documentation on MQL5: Constants, Enumerations and Structures / Indicator Constants / Price Constants Documentation on MQL5: Constants, Enumerations and Structures / Indicator Constants / Price Constants](https://c.mql5.com/36/42/documentation-on-mql5-constants__55.png)
- www.mql5.com
If you need the speed and performance, then probably C++ will provide you what you need. I also sometimes use it for the initial optimization to narrow down some of the results.
As long as you can direclty translate your mql code to C++, you will get the precision up to 6 decimals. You can achieve even more depending on your knowledge between C++ and mql code.
For example, you can use open, high, low, and close price to test your strategy in C++, in MetaTrader backtester, also set open, high, low and close price mode to check the accuracy of your C++ code.
You will see that result from both code is converging to same number.
Kind regards
That's exactly what i am trying to do is to build my own optimization.
Have you got a C++ project with the core structures in place or know somewhere it has? We can build something out collaboratively if there are sufficient people interested.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I was wondering if anyone is using C++ to build/test strategies that are comparable with MT4 and MT5 with matching trades?