Math / Reference
alerta.math.avg
TradingView-compatible spelling: math.avg, runs without warnings
Returns the arithmetic mean of two or more values (na when any of them is na).
alerta.math.avg(a, b) → series floatParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
a | series float | Yes | — | First value. |
b | series float | Yes | — | Second value. |
Returns
series floatExample
alerta.math.avg
m = avg(open, close)plot(m)Names and aliases
Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.