Caught exception: System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
at System.ThrowHelper.ThrowInvalidOperationException( ExceptionResource resource)
at System.Collections.Generic.List`1.Enumerator.MoveN extRare()
at NinjaTrader.Gui.Chart.ChartControl.RemoveAllDrawin gToolsFor(IChartObject chartObject)
at NinjaTrader.Gui.NinjaScript.IndicatorRenderBase.Re moveDrawObjects()
This is not generally reproducible. I normally see it when starting NT up from scratch and workspaces are loading. Once loaded, I will not see again while running.
The indicator that uses this, always calls RemoveDrawObjects() to remove all drawings before adding the current set of drawings. This is done on bar close.
This exception would seem to point to an internal NT issue.
Comment