Features of the mql5 language, subtleties and tricks - page 139

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
This option does not work
Corrected the code, everything is ok now.
Something you posted with an error, as it doesn't compile at all.
Something you posted with an error, as it doesn't compile at all.
Yes, it's a typo. Corrected.
Thank you, it works. Remains to be seen the effect on performance.
Forum on trading, automated trading systems and trading strategy testing
Bugs, bugs, questions
fxsaber, 2019.07.09 18:36
Forum on trading, automated trading systems and trading strategy testing
Bugs, bugs, questions
fxsaber, 2019.07.09 19:40
Release version is running. Optimization enabled.
Found optimal static array size by experience
For those who use dynamic resources (e.g., Kanvas), I recommend speeding up filling arrays in the following way
I found the optimal size of a static array through experimentation.
And if you compare it withArrayFill from mql5, will there be a speed gain or not?
I haven't read the whole topic, maybe there is an answer to this question, MT5 doesn't understandably behave with graphical objects, the terminal is closed for some time and the objects remain attached to some obscure points. How do you deal with this? It's not difficult to do in those cases when a chart window is open. I personally add a transition to OnDeinit in OnInit(), but if the window is bookmarked it doesn't solve the problem. Maybe someone will tell us where we can "voice" the suggestions to the creators of MT5.
.
I haven't read the whole topic, maybe there is an answer to this question, MT5 doesn't understandably behave with graphical objects, the terminal is closed for some time and the objects remain attached to some obscure points. How do you deal with it? It's not difficult to do in those cases when a chart window is open. I personally add a transition to OnDeinit in OnInit(), but if the window is bookmarked it doesn't solve the problem. Maybe someone will tell us where we can "voice" the suggestions to the creators of MT5.
.
Provide exact data to reproduce: e.g. a chart template with objects.
I suspect that the objects are drawn by the indicator, and it is the indicator that incorrectly tracks prev_calculated.
and if you compare it toArrayFill from mql5, will there be a speed gain or not?
I don't think there will be.
I don't think it will.
so why reinvent your own lisepad when there is already a productive function?