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

Utilities / Reference

alerta.nz

TradingView-compatible spelling: nz, runs without warnings

Replaces null, undefined, or NaN values with a replacement value (default 0).

alerta.nz(val, replacement) → series any

Parameters

NameTypeRequiredDefaultDescription
valanyYes—Value to check.
replacementanyNot specified0Replacement value.

Returns

series any

Example

alerta.nz
const safeSma = nz(sma(close, 20), 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.