ta.bb

「ボリンジャーバンド」を計算します。

定義

ta.bb(source, length, sigma)

引数


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 ボリンジャーバンドの計算期間
sigma ボリンジャーバンドの標準偏差σ値

戻り値

[float, float, float] : ミドルライン, 上バンド, 下バンドの値

サンプルコード

20日/±2σのボリンジャーバンドを描画

[middle, upper, lower] = ta.bb(close, 20, 2)
plot(middle, color=color.white)
plot(upper, color=color.yellow)
plot(lower, color=color.yellow)

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