Skip to content
AlertaChartAlertaScript / docs
AlertaScript / alerta.math.abs
On this pageSignatureParametersReturnsExample

Math / Reference

alerta.math.abs

TradingView-compatible spelling: math.abs, runs without warnings

Absolute value of x.

alerta.math.abs(x) → series float

Parameters

NameTypeRequiredDefaultDescription
xseries floatYes—Value.

Returns

series float

Example

alerta.math.abs
const a = abs(close - open)

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.