dmi

dmi

dmi関数はDMI(方向性指数)を返します。

dmi(diLength, adxSmoothing) → [series[float], series[float], series[float]]

study(title="Directional Movement Index", shorttitle="DMI", format=format.price, precision=4)
len = input(17, minval=1, title="DI Length")
lensig = input(14, title="ADX Smoothing", minval=1, maxval=50)
[diplus, diminus, adx] = dmi(len, lensig)
plot(adx, color=color.red, title="ADX")
plot(diplus, color=color.blue, title="+DI")
plot(diminus, color=color.orange, title="-DI")

戻り
3つのDMI系列のタプル: +DI(プラスの方向性指数)と -DI(プラスの方向性指数)、ADX(平均方向性指数)。

引数
diLength (integer) DI期間。
adxSmoothing (integer) ADXの平滑化期間。

\ 最新情報をチェック /

コメントを残す

Pineスクリプト

前の記事

dev
Pineスクリプト

次の記事

ema