Matrices / Reference
alerta.matrix.remove_col
TradingView-compatible spelling: matrix.remove_col, runs without warnings
Removes the column at index and returns its values as an array.
alerta.matrix.remove_col(id, index) → ArrayParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
id | string | Yes | — | Matrix ID. |
index | int | No | — | Column index. Default: the last column. |
Returns
ArrayExample
alerta.matrix.remove_col
m = matrix.new(2, 2, 0)if barstate.isfirst matrix.remove_col(m, 0)plot(matrix.columns(m), { title: "cols-", pane: "oscillator" })Names and aliases
Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.