table - Pine Script Variable
Overview
Section titled “Overview”Collections of table widgets created by your script.
Fields
Section titled “Fields”| Field | Type | Description |
|---|---|---|
table.all | array<table> | Returns an array filled with all the current tables drawn by the script. |
Remarks
Section titled “Remarks”table.all: The array is read-only. Index zero of the array is the ID of the oldest object on the chart.
Example
Section titled “Example”//@version=6indicator("Table cleanup", overlay=true)
var table dashboard = table.new(position.top_right, 2, 1, bgcolor=color.new(color.black, 85))
if barstate.islast tables = table.all if array.size(tables) > 0 for i = 0 to array.size(tables) - 1 table.delete(array.get(tables, i))