Lipi Reference
Lipi

Functions

table.cell_set_tooltip()

Sets the tooltip of an existing cell.

Syntax

                table.cell_set_tooltip(series table id, series int column, series int row, series string tooltip) → void
              

Arguments

id required series table Table object.
column required series int 0-based column.
row required series int 0-based row.
tooltip required series string Tooltip text.

Return Type

void

Example


          //@lipi=2
indicator("table.cell_set_tooltip Example")
if barstate.islast {
    t = table.new(position.top_right, 1, 1)
    table.cell(t, 0, 0, text=str.tostring(close))
    table.cell_set_tooltip(t, 0, 0, "Last close")
}