Was working fine before.
I get the following error message. : On Render method Index was out of range.
Must be non-negative and less than the size of the collection.
Parameter name: index
Stack :
Stack : at System.ThrowHelper.ThrowArgumentOutOfRangeExceptio n
(ExceptionArgument argument, ExceptionResource resource)
at NinjaTrader.Data.BarsSeries.GetTime(Int32 index)
at NinjaTrader.Data.BarsSeries.GetSessionEndTime(Int3 2 index)
at NinjaTrader.Data.Bars.GetSessionEndTime(Int32 index)
at NinjaTrader.NinjaScript.TimeSeries.get_Item(Int32 barsAgo)
at NinjaTrader.NinjaScript.DrawingTools.DrawingTool.C reateChartAnchor(NinjaScriptBase
ownerNinjaScript, Int32 barsAgo, DateTime time, Double y)
at NinjaTrader.NinjaScript.DrawingTools.Draw.ShapeCor e[T](NinjaScriptBase owner, Boolean
isAutoScale, String tag, Int32 startBarsAgo, Int32 endBarsAgo, DateTime startTime, DateTime endTime,
Double startY, Double endY, Brush brush, Brush areaBrush, Int32 areaOpacity, Boolean isGlobal,
String templateName)
at NinjaTrader.NinjaScript.DrawingTools.Draw.Ellipse( NinjaScriptBase owner, String tag, Boolean
isAutoScale, Int32 startBarsAgo, Double startY, Int32 endBarsAgo, Double endY, Brush brush, Brush
areaBrush, Int32 areaOpacity)
Comment