ProcessingBarIndexes

Description

ProcessingBarIndexes is an array of int values that contains the number of ProcessingBarIndex for each bar.
This array is only of value for indicators or strategies that use data from multiple timeframes.
A new entry is added to the array whenever a new timeframe is added to an indicator or strategy.
With [TimeFrameRequirements(("1 Day"), ("1 Week"))] the array will contain 3 entries:
ProcessingBarIndexes[0] Current bar for the primary data series (chart timeframe) ProcessingBarIndexes[1] Current bar for the daily bars ProcessingBarIndexes[2] Current bar for the weekly bars
ProcessingBarIndexes[0] is equivalent to ProcessingBarIndex.
Also, see MultiBars.

Parameter

barSeriesIndex Index value for the various timeframes

Usage

1
ProcessingBarIndexes[int barSeriesIndex]
Copied!

Example

1
//Ensure that a minimum of 20 bars is loaded
2
for (int i=0; i<ProcessingBarIndexes.Count; i++)
3
if (ProcessingBarIndexes[i] < 20) return;
Copied!