Close.Count
490
Close[0]
6.84
Close[91]
'Close[91]' threw an exception of type 'System.ArgumentOutOfRangeException'
ActualValue: null
Data: {System.Collections.ListDictionaryInternal}
HResult: -2146233086
HelpLink: null
InnerException: null
Message: "Index was out of range. Must be non-negative and less than the size of the collection.\r\nParameter name: index"
ParamName: "index"
Source: "mscorlib"
StackTrace: " at System.ThrowHelper.ThrowArgumentOutOfRangeExceptio n(ExceptionArgument argument, ExceptionResource resource)\r\n at NinjaTrader.Data.BarsSeries.GetClose(Int32 index)\r\n at NinjaTrader.Data.Bars.GetClose(Int32 index)\r\n at NinjaTrader.NinjaScript.PriceSeries.get_Item(Int32 barsAgo)"
TargetSite: {Void ThrowArgumentOutOfRangeException(System.ExceptionA rgument, System.ExceptionResource)}
Any help would be appreciated.
Comment