Features of the mql5 language, subtleties and tricks - page 85
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
That's very interesting...
Do you have any idea why these things happen?
What is the mechanism?
It's hard to say exactly. When you know ahead of time that a variable won't change, you can find a more elegant way to store it, expose loops and other compiler optimizations.
So I would recommend using const as much as possible not only for self-checking, but for the compiler as well.
It's hard to say for sure. When you know beforehand that the variable will not change, you can find a more elegant way of storing it, uncovering cycles and other compiler optimizations.
Therefore, I would recommend not only for self-monitoring, but also for the compiler to use const as much as possible.
Have you checked the other StringXXX functions? Maybe they are all slow: -D
I didn't. I needed it for that.
fxsaber:
Result(Release)
In this form, these tests do not give entirely objective results because of the possibility of optimization of such code by the compiler. You have the same string parsed many times. And you need to parse different strings at each iteration
As it is, these tests are not quite objective because of the compiler's ability to optimize such code. You have the same string being parsed multiple times, while you need to parse different strings at each iteration
I considered this circumstance but did not lay out heavier code. It has the same result.
Duplicated here, I think it got lost
Forum on trading, automated trading systems and strategy tester
FAQ from Beginners MQL5 MT5 MetaTrader 5
Vitaly Muzichenko, 2018.04.18 14:54
Can you tell me, after the test in multicurrency mode in the tester we see the result only ..., however, we do not see anything but the overall result.
Somewhere I met either in an article or in kodobase a code that shows the results for each symbol separately. Who knows what about it?
I'll duplicate it here, it must have got lost there
https://www.mql5.com/ru/articles/4562
https://www.mql5.com/ru/articles/4562
I found this, but it's a little different.
Thank you!
Forum on trading, automated trading systems and trading strategies testing
Released beta version of MetaTrader 5 build 1795 on MetaQuotes-Demo
fxsaber, 2018.04.24 09:37
TesterWhat does last-price have to do with a symbol with these settings?
You need to zero out SYMBOL_TICKS_BOOKDEPTH, otherwise (in the screenshot = 9) Tester will expect last-price (even if there is none) as above in the post.
So after "Copy from:" keep an eye on this parameter.