vwapsd
VWAP volume-weighted deviation
vwapsd() or vwapsd("1w")sqrt of cumulative volume * (hlc3 − previous VWAP) * (hlc3 − VWAP) / volume, reset on the same period as vwap("1w"). Not ta.stdev. Default reset 1w.
Parameters
| Name | Type | Description |
|---|---|---|
resetoptional | string default 1w | Same reset period as vwap("1w"). |
Return value
series
Example
mid = vwap("1w")
sd = vwapsd("1w")
plot mid as "VWAP" orange
plot mid + 1.618 * sd as "Upper" red