Run indicator faster than tick

To add comments, please log in or register
Axel D
37
Axel D  

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 (condition)
        if (line[i] > line[i+1])
            line[i] = Close[i];

        else

            condition=false;

}

Thank you in advance!

William Roeder
18658
William Roeder  
Axel D: run all the loops at once, instead of having to wait for every tick running each loop.

Why? Nothing has changed. Nothing (except TimeLocal) will ever change, until the next tick.

Axel D
37
Axel D  
Maybe I'm missing something here. But I wanted to have the for loop run all the times it should run, without depending on the next tick.
William Roeder
18658
William Roeder  
Axel D: Maybe I'm missing something here. But I wanted to have the for loop run all the times it should run, without depending on the next tick.

"All the times it should run," is once per tick. What part of "nothing is changing" is unclear to you?

To add comments, please log in or register