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

Matrices / Reference

alerta.matrix.reverse

TradingView-compatible spelling: matrix.reverse, runs without warnings

Reverses the order of rows and columns in place: the first element becomes the last.

alerta.matrix.reverse(id) → void

Parameters

NameTypeRequiredDefaultDescription
idstringYes—Matrix ID.

Returns

void

Example

alerta.matrix.reverse
m = matrix.new(2, 2, 0)if barstate.isfirst    matrix.set(m, 0, 0, 1)    matrix.set(m, 1, 0, 9)    matrix.reverse(m)plot(matrix.get(m, 0, 0), { title: "rev00", 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.