line.set_xy2
Moves the second point.
line.set_xy2(id: line, x: int/float, y: int/float)
Parameters
idline: The line's handle (from line.new); na or a deleted line does nothing.xint/float: A bar index (bar_index), or a UTC ms time when the drawing uses xloc.bar_time.yint/float: A price.
Example
l.set_xy2(bar_index, close)