BarsInProgress
Definition
An index value of the current Bars object that has called the OnBarUpdate method. In a multi-bars script, the OnBarUpdate() method is called for each Bars object of a script. This flexibility allows you to separate trading logic from different bar events.
- In a single Bars script this property will always return an index value of 0 representing the primary Bars and instrument the script is running on.
- See additional information on running multi-bars scripts.
Property Value
An int value represents the Bars object that is calling the OnBarUpdate() method.
Syntax
BarsInProgress

