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) → voidParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
id | string | Yes | — | Table ID. |
row | int | Yes | — | Row index (0-based). |
col | int | Yes | — | Column index (0-based). |
text | string | Yes | — | Text/Value to display. |
options | object | Not specified | — | { position, bgColor, textColor, textAlign, size, fontWeight } |
Returns
voidExample
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.