nz
Replaces na with the replacement (default 0).
nz(x: any, replacement: any = 0) -> any
Parameters
xany: Any value.replacementany: What na becomes (default 0); of the same type as x.
Example
prev = nz(close[1], open)
Replaces na with the replacement (default 0).
nz(x: any, replacement: any = 0) -> any
x any: Any value.replacement any: What na becomes (default 0); of the same type as x.prev = nz(close[1], open)