Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
but I have a question: is there any period limit in the iMA function - is there any way to increase it?
In OnInit() ...
In OnTick() ...
and now the question is: does he have this delay only in the first calculation? or will it react to each bar change after a few minutes ?
(In fact, the question is whether, after running such a script containing very long averages, it prepares something (and hence such long calculations) and then runs quickly, or whether it will carry out these long calculations after each change of the bar.)
and now the question is: does he have this delay only in the first calculation? or will it react to each bar change after a few minutes ?
(In fact, the question is whether, after running such a script containing very long averages, it prepares something (and hence such long calculations) and then runs quickly, or whether it will carry out these long calculations after each change of the bar.)
I understand what you want to say, but I was convinced that MT5 does it itself. How else can you explain that a script that calculates 64 very long averages every minute performs a 3-year test in 1.5 minutes?
if the test performs 11520 cycles every second - how can it not keep up with 1 cycle per minute in real mode???
I understand what you want to say, but I was convinced that MT5 does it itself. How else can you explain that a script that calculates 64 very long averages every minute performs a 3-year test in 1.5 minutes?
if the test performs 11520 cycles every second - how can it not keep up with 1 cycle per minute in real mode???
that's exactly what I mean!!!
tester should be very fast and it is very fast ...

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
but I have a question: is there any period limit in the iMA function - is there any way to increase it?
In OnInit() ...
In OnTick() ...