Skip to content
AlertaChartAlertaScript / docs
AlertaScript / alerta.drawTable
On this pageSignatureParametersReturnsExampleNotes

Drawing / Reference

alerta.drawTable

TradingView-compatible spelling: table.cell, runs without warnings

Draws a persistent table cell for creating HUDs and dashboards.

alerta.drawTable(id, row, col, text, options) → void

Parameters

NameTypeRequiredDefaultDescription
idstringYes—Table ID.
rowintYes—Row index (0-based).
colintYes—Column index (0-based).
textstringYes—Text/Value to display.
optionsobjectNot specified—{ position, bgColor, textColor, textAlign, size, fontWeight }

Returns

void

Example

alerta.drawTable
drawTable("hud", 0, 0, "RSI: " + fixed(rsi(close, 14), 2), { position: "top_right", bgColor: "#1e222d" })

Notes

  • Legacy alias: prefer object API (`table.new` + `table.cell`) for Pine parity.

Names and aliases

Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.

AlertaScript

No results found.

Search by name, alias, or keyword.