Volume / Reference
alerta.ta.vwap
TradingView-compatible spelling: ta.vwap, runs without warnings
Pine v6: volume-weighted average price, restarted whenever `anchor` is true — by default at the first bar of every trading day on the exchange clock (so on a daily chart it is the source itself). Two overloads: • `ta.vwap(source, anchor)` → series float • `ta.vwap(source, anchor, stdev_mult)` → tuple [vwap, upper, lower] with ±N·stdev bands. The bare `ta.vwap` variable is the session VWAP of hlc3.
alerta.ta.vwap(source, anchor?, stdev_mult?) → series float | [vwap, upper, lower]Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
source | series float | Yes | — | Price source (e.g. close, hlc3). |
anchor | series bool | Not specified | — | Reset condition. Default is `timeframe.change("1D")`. |
stdev_mult | simple float | Not specified | — | When present, the function returns ±N·stdev bands as a tuple. |
Returns
series float | tupleExample
alerta.ta.vwap
// Daily-anchored VWAP with ±1σ bands.[v, u, l] = ta.vwap(close, timeframe.change("D"), 1.0)plot(v)plot(u)plot(l)Names and aliases
Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.