label.set_xloc
Changes what x means (xloc.*).
label.set_xloc(id: label, xloc: string)
Parameters
idlabel: The label's handle (from label.new); na or a deleted label does nothing.xlocstring: xloc.bar_index (x is a bar index) or xloc.bar_time (x is a UTC ms time).
Example
lb.set_xloc(xloc.bar_time)