Matrices / Reference
alerta.matrix.is_zero
TradingView-compatible spelling: matrix.is_zero, runs without warnings
Returns true if all elements are zero.
alerta.matrix.is_zero(id) → boolParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
id | string | Yes | — | Matrix ID. |
Returns
boolExample
alerta.matrix.is_zero
m = matrix.new(2, 2, 0)plot(matrix.is_zero(m) ? 1 : 0, { title: "zero", pane: "oscillator" })Names and aliases
Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.