table.all - Pine Script Variable
table.all
Section titled “table.all”Overview
Section titled “Overview”Returns an array filled with all the current tables drawn by the script.
array<table>Remarks
Section titled “Remarks”- The array is read-only. Index zero of the array is the ID of the oldest object on the chart.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”//@version=6indicator("table.all")//delete all tablestable.new(position = position.top_right, columns = 2, rows = 1, bgcolor = color.yellow, border_width = 1)a_allTables = table.allif array.size(a_allTables) > 0for i = 0 toarray.size(a_allTables) - 1 table.delete(array.get(a_allTables, i))