When I create a Line object in code then set the line's .IsLocked property to false, the line still cannot be moved manually on the chart. Manually viewing the code-generated line's properties, I can see that the "IsLocked" box is checked. Manually unchecking the property will allow the line to be moved.
What is the proper way to set IsLocked to false in code so that a program-created Line (or any other drawing object) can be manipulated by the user?
Example code:
NinjaTrader.NinjaScript.DrawingTools.Line myLine = null; myLine = Draw.Line( this, "Line1", 4, 2350.00, 0, 2350.00, Brushes.Blue, DashStyleHelper.Solid, 3 ); // Horizontal line starting 4 bars ago myLine.IsLocked = false; // This has no efffect. Line still locked on chart.
Comment