Hello! I use a for loop on my indicator and I wonder if there is any way to run all the loops at once, instead of having to wait for every tick running each loop. As of this moment, the buffers plotted on chart take extremely long time to fully load.
for (int i = 0; i < rates_total; ++i)
if (line[i] > line[i+1])
line[i] = Close[i];
Thank you in advance!
Why? Nothing has changed. Nothing (except TimeLocal) will ever change, until the next tick.
"All the times it should run," is once per tick. What part of "nothing is changing" is unclear to you?