Skip to content
Algo Trade Analytics Docs

table - Pine Script Variable

Collections of table widgets created by your script.

FieldTypeDescription
table.allarray<table>Returns an array filled with all the current tables drawn by the script.
  • table.all: The array is read-only. Index zero of the array is the ID of the oldest object on the chart.
//@version=6
indicator("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))