ta.kcw

「ケルトナーチャンネル幅」を計算します。

定義

ta.kcw(source, length, sigma, useTrueRange)

引数


Notice: Undefined variable: tr in /home/tradetech1/tradetech.online/public_html/wp-content/themes/tradetechonline_swell/single-dict-pine-v5.php on line 77

Warning: Invalid argument supplied for foreach() in /home/tradetech1/tradetech.online/public_html/wp-content/themes/tradetechonline_swell/single-dict-pine-v5.php on line 77

Notice: Undefined variable: tr in /home/tradetech1/tradetech.online/public_html/wp-content/themes/tradetechonline_swell/single-dict-pine-v5.php on line 77

Warning: Invalid argument supplied for foreach() in /home/tradetech1/tradetech.online/public_html/wp-content/themes/tradetechonline_swell/single-dict-pine-v5.php on line 77

Notice: Undefined variable: tr in /home/tradetech1/tradetech.online/public_html/wp-content/themes/tradetechonline_swell/single-dict-pine-v5.php on line 77

Warning: Invalid argument supplied for foreach() in /home/tradetech1/tradetech.online/public_html/wp-content/themes/tradetechonline_swell/single-dict-pine-v5.php on line 77

Notice: Undefined variable: tr in /home/tradetech1/tradetech.online/public_html/wp-content/themes/tradetechonline_swell/single-dict-pine-v5.php on line 77

Warning: Invalid argument supplied for foreach() in /home/tradetech1/tradetech.online/public_html/wp-content/themes/tradetechonline_swell/single-dict-pine-v5.php on line 77
引数名 内容 初期値
source 計算する価格
length ミドルライン(EMA)の計算期間
sigma ケルトナーチャネルのATR倍率
useTrueRange trueだとATR、falseだと通常の値幅(high-low)でケルトナーチャネルを計算します true

戻り値

float : ケルトナーチャンネル幅

サンプルコード

20日EMA/ATR2倍のケルトナーチャネル幅をグラフ描画

plot(ta.kc(close, 20, 2), color=color.green)

よかったらシェアしてね!
  • URLをコピーしました!
  • URLをコピーしました!
目次