line.set_x2
Moves the second point to x.
line.set_x2(id: line, x: 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.
Example
l.set_x2(bar_index)