Print(Message); //Hello World! foreach (DrawingTool draw in DrawObjects) { if (draw.GetType().Name == "Dot") { Print("Dot"); Print(draw.GetType()); Print("Dot2"); DrawingTools.Dot myDot = draw as DrawingTools.Dot; [B]Print(myDot.Anchor.Price); [/B] }
Hello World!
Dot
NinjaTrader.NinjaScript.DrawingTools.Dot
Dot2
Strategy 'Test2': Error on calling 'OnStateChange' method: Object reference not set to an instance of an object.
Comment