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) → voidParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
id | string | Yes | — | Matrix ID. |
Returns
voidExample
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.