Skip to content
Algo Trade Analytics Docs

table.all - Pine Script Variable

Returns an array filled with all the current tables drawn by the script.

array<table>
  • The array is read-only. Index zero of the array is the ID of the oldest object on the chart.
//@version=6
indicator("table.all")//delete all tables
table.new(position = position.top_right, columns = 2, rows = 1, bgcolor = color.yellow, border_width = 1)a_allTables = table.all
if array.size(a_allTables) > 0
for i = 0 to
array.size(a_allTables) - 1 table.delete(array.get(a_allTables, i))