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

Example

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