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

Math / Reference

alerta.math.max

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

Returns the larger of two or more values.

alerta.math.max(x, y) → series float

Parameters

NameTypeRequiredDefaultDescription
xseries floatYes—Value 1.
yseries floatYes—Value 2.

Returns

series float

Example

alerta.math.max
const m = max(open, close)

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.