I wish to know if this is the correct way to calculate indicator's value in a for loop (throughout all the available bars):
for(int i=0; i<Bars; i++)
P.S. Logically in this simple case I would like to represent and plot a MA replication by iMA object. But I am not sure of how I set the loop. I get a bit of difference compared to the one calculated with built-in MT4. I cannot figure out why!
To add comments, please log in or register