Matrices / Reference
alerta.matrix.add_row
TradingView-compatible spelling: matrix.add_row, runs without warnings
Inserts a row from array values; without them a row of na, at the end by default.
alerta.matrix.add_row(id, index, rowArray) → voidParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
id | string | Yes | — | Matrix ID. |
index | int | No | — | Insert position. Default: after the last row. |
rowArray | Array | No | — | Array handle with row values. Default: a row of na. |
Returns
voidExample
alerta.matrix.add_row
m = matrix.new(1, 2, 0)r = array.from(5, 6)if barstate.isfirst matrix.add_row(m, 1, r)plot(matrix.rows(m), { title: "rows+", pane: "oscillator" })Names and aliases
Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.