nz

nz

NaN値を直列の0(または指定された値)に置き換えます。

nz(x, y) → integer
nz(x, y) → float
nz(x, y) → color
nz(x, y) → bool
nz(x, y) → series[integer]
nz(x, y) → series[float]
nz(x, y) → series[color]
nz(x, y) → series[bool]
nz(x) → integer
nz(x) → float
nz(x) → color
nz(x) → bool
nz(x) → series[integer]
nz(x) → series[float]
nz(x) → series[color]
nz(x) → series[bool]

nz(sma(close, 100))

戻り
2つの引数形式:有効な(NaNではない)番号の場合はxを返し、それ以外の場合はyを返す。
1つの引数の型:有効な(NaNではない)番号の場合はxを返し、それ以外の場合は0を返します。

引数
x (series) 処理する値の系列。
y (float) x系列においてすべてのNaN値の代わりに挿入される値。

\ 最新情報をチェック /

コメントを残す

Pineスクリプト

前の記事

na
Pineスクリプト

次の記事

offset