「ALMA(アルノー・ルグー移動平均線)」を計算します。
定義
ta.alma(source, length, offset, sigma, floor)
引数
| 引数名 |
内容 |
初期値 |
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
source |
計算対象 |
|
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
length |
対象期間 | |
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
offset |
応答性と滑らかさの調整値(0~1) | |
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
sigma |
滑らかさのシグマ値 | |
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
floor |
(省略可)ALMA計算前にオフセットの計算を切り捨てるかどうか指定 |
false |
戻り値
float : 移動平均線の値
サンプルコード
// ALMAをグラフ描画
plot(ta.alma(close, 9, 0.85, 6))