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

Example

l.set_first_point(chart.point.from_index(bar_index - 10, low))