table.delete() - Pine Script Function
table.delete()
Section titled “table.delete()”Overview
Section titled “Overview”The function deletes a table.
Syntax
Section titled “Syntax”table.delete(table_id) → voidParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| table_id | series table | A table object. |
Examples
Section titled “Examples”Example 1
Section titled “Example 1”//@version=6indicator("table.delete example")var testTable = table.new(position = position.top_right, columns = 2, rows = 1, bgcolor = color.yellow, border_width = 1)if barstate.islasttable.cell(table_id = testTable, column = 0, row = 0, text = "Open is " + str.tostring(open))table.cell(table_id = testTable, column = 1, row = 0, text = "Close is " + str.tostring(close), bgcolor=color.teal)if barstate.isrealtimetable.delete(testTable)