Missing values reference

All 2 missing values in AlgoBarsX, each with its parameters, defaults, ranges and an example: nz, is_na.

nz is_na

nz(value, fallback = 0)→ like value#

Replace a missing value.

Parameters

NameTypeDefaultWhat it is
valuenumberrequiredValue that may be na.
fallbacknumber0Replacement.
Example
safe = nz(close[1], close)
strategyindicatoralertlibrarysince 1.0

is_na(value)→ bool#

True when a value is missing.

Parameters

NameTypeDefaultWhat it is
valuenumberrequiredValue to test.
Example
warming_up = is_na(ema(close, 200))
strategyindicatoralertlibrarysince 1.0

Try this in the Terminal. AlgoBars is free: $0 a month, no card needed.

Create my free account