An array holding every box currently on the chart, from the oldest to the newest.
Loop over it to restyle, extend or delete all zones at once, including boxes whose variables are out of scope or were drawn on earlier bars.
The array is a snapshot taken when it is read, so taking an item out of it does not remove the drawing; call box.delete() on the box. Its size never exceeds max_boxes_count.
Type
array<box>
Remarks
- On Sidechair:
box.allis read afresh on each use and lists boxes in creation order, so it reflects the boxes currently on the chart.
Example
//@version=6
indicator("box.all: extend all", overlay = true)
if bar_index % 30 == 0
box.new(bar_index, high, bar_index + 8, low, bgcolor = color.new(color.blue, 88))
if barstate.islast
for b in box.all
box.set_extend(b, extend.right)See also
Runs on Sidechair