CurrentBars
Definition
Holds an array of int values representing the number of the current bar in a Bars object. An int value is added to this array when calling the AddDataSeries() method. Its purpose is to provide access to the CurrentBar of all Bars objects in a multi-instrument or multi-time frame script.
In multi series processing, the CurrentBars starting value will be -1 until all series have processed the first bar.
Property Value
An array of int values.
Warning: This property should NOT be accessed within the OnStateChange() method before the State has reached State.DataLoaded.
Syntax
CurrentBars[int barSeriesIndex]

