View Single Post
 
Old 11-21-2005, 06:11 AM
newdigital newdigital is online now
Administrator
 
Join Date: Sep 2005
Posts: 16,232
Blog Entries: 100
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
It should be started from zero as I understand. Or from 1.
But according to this suggestion it is not started from zero, it was started from something, or from some max value may be:
if (counted_bars > 0) counted_bars --;

As Codersguru described before "pos" is the number of time for the loop to work.
Because:
int pos = Bars - counted_bars;

It means if counted_bars is equal to the total number of Bars in the charts the loop will be finished. So, counted_bars should be started from some miminum and finished with some maximum.

May be I do not understand something.