i created a custom dataseries
how can i access barsarray created in different timeframe in lower timeframe?
in the below example, i have a bars array ConseqLow = new Series<int>(BarsArray[1], createed in 25 min timeframe
i would like to access the data in my basetimeframe which is 5 minutes.
public class PullbackBounce : Indicator { private Series<int> LongDirection, ShortDirection,ConseqLow,ConSeqHigh; // Define protected override void OnStateChange() { if (State == State.Configure) { Print(BarsPeriod.ToString()); // if (BarsPeriod.BarsPeriodType == BarsPeriodType.Minute) // { AddDataSeries(BarsPeriodType.Minute, 25); AddDataSeries(BarsPeriodType.Tick, 1); } if (State == State.DataLoaded) { LongDirection = new Series<int>(this, MaximumBarsLookBack.Infinite); ShortDirection = new Series<int>(this, MaximumBarsLookBack.Infinite) ConseqLow = new Series<int>(BarsArray[1], MaximumBarsLookBack.Infinite); ConseqHigh = new Series<int>(BarsArray[1], MaximumBarsLookBack.Infinite); } } protected override void OnBarUpdate() { if (BarsInProgress == 0) // this is the different timeframe. how can i acces teh ConseqLow bars array? } } }
Comment