NinjaScript > Language Reference > Data > 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 Add() method in a Custom Indicator/Strategy. Its purpose is to provide access to the CurrentBar of all Bars objects in a multi-instrument or multi-time frame indicator/strategy.
Property Value An array of int values.
Syntax CurrentBars[int barSeriesIndex]
Examples
|