indicator not autorefreshing and not sending buffer values properly
int limit = rates_total - prev_calculated; if (prev_calculated < 1) { ArrayInitialize(Buffer1, 0); ArrayInitialize(Buffer2, 0); } else limit++; //--- main loop for(int i = limit-1; i >= 0; i--) { if (i >= MathMin(5000-1, rates_total-1-50)) continue; //omit some old rates to prevent "Array out of range" or slow calculation : } return(rates_total);
Broken indicator.
First time prev_calculated is zero, so limit becomes Bars+1. The test on i prevents the Array out of range. The second time limit is zero, i is minus one, and bar zero in never calculated.
whroeder1:
thanks a lot!
Broken indicator.
First time prev_calculated is zero, so limit becomes Bars+1. The test on i prevents the Array out of range. The second time limit is zero, i is minus one, and bar zero in never calculated.
Hi, the indicator below stopped working a few days ago and I'm struggling with the problem.
I attach the indicator which is not auto-refreshing the arrows and also the EA in which you can see the indicator is always returning the value "0".
Indicator
and the EA
Thanks a lot!