「DMI(方向性指数)」を計算します。
戻り値としてDI+/DI-/ADXの値がそれぞれ取得可能です。
定義
ta.dmi(diLength, adxSmoothing)
引数
| 引数名 |
内容 |
初期値 |
Warning: Undefined variable $tr in /home/tradetech1/tradetech.online/public_html/wp-content/themes/tradetechonline_swell/single-dict-pine-v5.php on line 77
Warning: foreach() argument must be of type array|object, null given in /home/tradetech1/tradetech.online/public_html/wp-content/themes/tradetechonline_swell/single-dict-pine-v5.php on line 77
diLength |
DIを計算する期間 |
|
Warning: Undefined variable $tr in /home/tradetech1/tradetech.online/public_html/wp-content/themes/tradetechonline_swell/single-dict-pine-v5.php on line 77
Warning: foreach() argument must be of type array|object, null given in /home/tradetech1/tradetech.online/public_html/wp-content/themes/tradetechonline_swell/single-dict-pine-v5.php on line 77
adxSmoothing |
ADXの平滑化期間 |
|
戻り値
[float, float, float] : +DI, -DI, ADXの値
サンプルコード
DI+/DI-/ADXのグラフを描画
[diplus, diminus, adx] = ta.dmi(14, 14)
plot(adx, color=color.red, title="ADX")
plot(diplus, color=color.blue, title="+DI")
plot(diminus, color=color.orange, title="-DI")