
CurrentBar will always be the left-most bar, because the bars are indexed backwards. So an index of 0 is always the right-most bar and an index of CurrentBar (monotonically increasing as the chart streams) will always be the left-most bar. To put it more simply, for the question that you asked: no, Close[0] is the Close of the last bar or penultimate bar, depending on the COBC setting. The close of the 5th bar from the right is always Close[5]. Just use the index to refer to the correct bar.

If you are using a calculation that uses the historical stream, then at each bar, the index will be increased. so each bar in turn in the stream will be represented by 0, until the stream is complete.

Comment