Skip to content
AlertaChartAlertaScript / docs
AlertaScript / alerta.matrix.add_row
On this pageSignatureParametersReturnsExample

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) → void

Parameters

NameTypeRequiredDefaultDescription
idstringYes—Matrix ID.
indexintNo—Insert position. Default: after the last row.
rowArrayArrayNo—Array handle with row values. Default: a row of na.

Returns

void

Example

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.

AlertaScript

No results found.

Search by name, alias, or keyword.