定義
ta.vwap(source, anchor, stdev_mult)
引数
引数名 |
内容 |
初期値 |
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 |
計算対象 |
|
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
anchor |
(省略可)timeframe.change(足種)を指定すると、指定足種の足が変わるごとにVWAPの計算がリセットされる |
timeframe.change("1D") |
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
stdev_mult |
(省略可)指定した値の標準偏差バンドを計算する |
初期値:na |
戻り値
float : 移動平均線の値
サンプルコード
VWAPグラフを描画
vwap = ta.vwap(open)
plot(vwap)
分足チャートで日付の切り替えごとにVWAPを再計算してグラフ描画
vwap = ta.vwap(timeframe.change(open, "1D")
plot(vwap)
標準偏差バンド(±1σ)も表示
[vwap, upper, lower] = ta.vwap(open, ta.vwap(timeframe.change(open, "1D"), 1.0)
plot(vwap)
plot(upper, color=color.green)
plot(lower, color=color.green)