View Single Post
  #7 (permalink)  
Old 11-21-2005, 04:57 PM
codersguru's Avatar
codersguru codersguru is offline
Senior Member
 
Join Date: Oct 2005
Posts: 987
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Arrow Bars

Quote:
Originally Posted by newdigital
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.
I've written an appendix about the BARS, I hope it helps .
Appendix 1 - BARS
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
Reply With Quote