BarsArray is an array holding Bars objects that are added via the Add() method. Bars objects can be used as input for indicator methods. This property is of primary value when working with multi-time frame or multi-instrument scripts.
NOTE: This property should NOT be accessed within the Initialize() method.
An array of Bars objects.
protected override void Initialize()
protected override void OnBarUpdate()
if (BarsInProgress == 1)
if (SMA(20) > SMA(BarsArray, 20))