line.set_xloc

Moves both points and changes what x means (xloc.bar_index or xloc.bar_time).

line.set_xloc(id: line, x1: int/float, x2: int/float, xloc: string)

Parameters

Example

l.set_xloc(time[10], time, xloc.bar_time)