box.set_xloc
Moves the left and right edges and changes what they mean (xloc.bar_index or xloc.bar_time).
box.set_xloc(id: box, left: int/float, right: int/float, xloc: string = "bar_index")
Parameters
idbox: The box's handle (from box.new); na or a deleted box does nothing.leftint/float: The new left edge, read as xloc says.rightint/float: The new right edge, read as xloc says.xlocstring: xloc.bar_index or xloc.bar_time
Example
bx.set_xloc(time[10], time, xloc.bar_time)