line.set_first_point
Moves the first end of the line to a chart.point (its index or time by the line xloc, and its price).
line.set_first_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_first_point(chart.point.from_index(bar_index - 10, low))