Run Time Problem

 

Hello,

I am new to this Mql4 programing and I had a question I was hoping someone could help with. I have an indicator that during the initialization phase I have a loops a function mutiple times over. I think the loop is moving on to the next cycle before the function has time to fully calculate. Is there a way to make sure the function calculates before it moves on to the next iteration?

Any help would be much apprectiate.

 
I have an indicator that during the initialization phase

During init() bars are not available, such as on terminal startup, the EA and indicators get loaded, then history gets updated from the server, then a tick comes in to start().

If I misunderstood your question, post the code.

Reason: