I'm attempting to make a multi-time frame stochastic indicator. I'm adding a second time series (10 minute in this case). I think it's successful when applied to certain time charts. However, I'm receiving error messages when applied to larger timeframes like 15 or 60 minute. I've used the
if (CurrentBars[0] < BarsRequired || CurrentBars[1] < BarsRequired...
Bars.BarsData.Period: 1 Min
BarsType: NinjaTrader.Data.MinuteBarsType
104: Error: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.Collections.ArrayList.get_Item(Int32 index)
at NinjaTrader.Data.DataSeries.Set(Double value)
at NinjaTrader.Indicator.MTF_Stochastics_ChartControl _v02.OnBarUpdate()
Any help you can give me is much appreciated.
kz
Comment