> ## 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.

# polyline variables

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

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

## `polyline.all` (variable)

**Definition**

Array of all currently existing polyline drawings, from oldest to newest.

**Type**

`series array<polyline>`

**Example**

```lipi theme={"languages":{"custom":["/languages/lipi.json","/languages/lipi-invalid.json"]}}
//@lipi=2
indicator("polyline.all Example", overlay=true)
if barstate.islast {
    pts = array.new<chartPoint>(0)
    array.push(pts, chartPoint.from_index(bar_index[5], high[5]))
    array.push(pts, chartPoint.from_index(bar_index, close))
    polyline.new(pts)
}
plot(array.length(polyline.all), title="Polyline Count")
```


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