
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
Forum on trading, automated trading systems and strategy testing
Libraries: TesterBenchmark
fxsaber, 2017.07.24 14:45
I've always wondered which trading API is faster - pure MQL4 or pure MQL5.
So let's do some OnTick profiling of the same Expert Advisor in MT4/5 to exclude the influence of the performance of the testers themselves.
MT5x64(Optimization)
MT4x86(Single Run)
We can conclude that the same trading logic written in MT4 on its pure trading API and that written in MT5 on its pure trading API differ in terms of speed as follows.
MT5 is 4.4 times faster than MT4! Please note that we are comparing not the speed of languages, but the speed of trading API for the same TS.
Forum on trading, automated trading systems and strategy testing
Libraries: TesterBenchmark
fxsaber, 2017.07.24 15:11
But still wondering how much and which tester is more productive. The TS from the delivery doesn't use quote history, so it's particularly good for this kind of comparison.
We will measure both testers in Optimisation mode to avoid different nuances.
MT5 (Optimize)
MT4 (Single)
Since Single is slow on MT4 too, let's do Optimize and see net time in OnTester
We obtain that the speed of the MT4 tester is 702884.9 * 1.486 / 0.607 =1720736.3 ticks/second.
Conclusion: MT4 tester is ~12% faster than MT5 tester.
Here's a question, very pertinent to the thread.
https://www.mql5.com/ru/forum/211657#comment_5500010 post #9
A little insight into the capabilities of the MT5 tester.