Most of the indicators I have checked out has its main loop made up with a decreasing counter. As instance, something like this:
intstart(){intlimit;
intcounted_bars=IndicatorCounted();
//---- check for possible errorsif(counted_bars<0)return(-1);
//---- last counted bar will be recountedif(counted_bars>0)counted_bars--;
limit=Bars-counted_bars;
//---- main loopfor(inti=0; i<limit; i++){MAINCODEoftheCustomIndicator}
I've tried to change the main loop for something like this:
//---- main loopfor(inti=limit; i<=0; i--){MAINCODEoftheCustomIndicator}
But as result, my Buffers stopped working properly. Actually, they didn't worked anymore at all.
So, if you have a clue of how I can use a loop with an increasing counter and KEEP MY BUFFERS WORKING I would really appreciate.
Most of the indicators I have checked out has its main loop made up with a decreasing counter. As instance, something like this:
I've tried to change the main loop for something like this:
But as result, my Buffers stopped working properly. Actually, they didn't worked anymore at all.
So, if you have a clue of how I can use a loop with an increasing counter and KEEP MY BUFFERS WORKING I would really appreciate.
Thank you so much,
your help is valuable,
brspMA