I want to access bar data, such as highs, lows, timestamps, etc. from all/any bar in the data series of my instrument before OnBarUpdate() begins, or possibly as a first act once it begins. Max() and Min() look back a specified number of bars from whatever bar OnBarUpdate() is processing. OnBarUpdate() does not seem to be able to look ahead, but the data for all the bars that are in the chart already exists, so data from the most recently formed bar/last bar in the chart should be available when OnBarUpdate() begins on the first bar. And for all the bars in between.
So, to sum up, I want to know how to access the data for all the bars in the chart before OnBarUpdate() begins going through the bars.
An example returning the date of the last bar in a chart would be very helpful.
And also, just out of curiosity, can OnBarUpdate() be called more than once in an indicator?
Thanks for your help,
Klopfgeist
Comment