> ## Documentation Index
> Fetch the complete documentation index at: https://gocharting.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# box variables

> Reference for the 1 variables of the box namespace: box.all, each with its definition and an example.

> [!NOTE]
>
> Language version: 2 · Reference version: 2.7 · Date: 2026-10-25 · Compiler build: df7b3b14 · Namespace: box · Entries: 1

## `box.all` (variable)

**Definition**

Array of all currently existing box drawings, from oldest to newest. The pointer is stable for the script lifetime.

**Type**

`series array<box>`

**Example**

```lipi wrap theme={"languages":{"custom":["/languages/lipi.json","/languages/lipi-invalid.json"]}}
//@lipi=2
indicator("box.all Example", overlay=true)
if barstate.islast {
    box.new(bar_index[5], high, bar_index, low, border_color=color.blue, bgcolor=color.new(color.blue, 0.8), textcolor=color.white)
}
plot(array.length(box.all), title="Box Count")
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.