line.set_second_point
Moves the second end of the line to a chart.point.
line.set_second_point(id: line, point: @chart.point)
Parameters
idline: The line's handle (from line.new); na or a deleted line does nothing.point@chart.point: A chart.point: its index (xloc.bar_index) or its time (xloc.bar_time) is x, its price is y; na gives na coordinates.
Example
l.set_second_point(chart.point.now(high))