Would you please point me to an example that allows an unconnected horizontal line segment to be drawn, and then extended or repositioned as needed.
For example:
NinjaTrader.NinjaScript.DrawingTools.Line highLine = Draw.Line(this, "HighLine", false, 0, High[0], -4, High[0], Brushes.Red, DashStyleHelper.Solid, 2);
gets me started. On the next bar, how do I extend highLine one bar to the right?
Finally, when the next bar's high exceeds the Y price of my line, how do I reposition the line to the new bar and Y price value? Or must I dispose of the line and just create a new one?
Many thanks.
Comment