Hello, I am having a problem when I set my indicator to use the path tool to show global drawing object, the following error message appears:
"Unhandled exception: Collection was modified; enumeration operation may not execute."
and this another error:
"Unable to create instance of NinjaScript 'Path'. Most likely either the implementation no longer exists, there is no default constructor defined, the default constructor does not work correctly, or the 'OnStateChange' implementation for State=SetDefaults is flawed: 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.NinjaScript.DrawingTools.PathToolSegme ntContainer.CopyTo(NinjaScript ninjaScript) at NinjaTrader.NinjaScript.DrawingTools.PathTool.Copy To(NinjaScript ninjascript) at NinjaTrader.NinjaScript.DrawingTools.DrawingTool.C lone()"
And from there the global lines stop working, I need to close and open Ninjatrader again to get them working again.
Comment