Reference
Volume
Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.
| Name / Signature | Description | Returns |
|---|---|---|
| alerta.ta.pvopvo(source, fastLength, slowLength, signalLength) | Calculates the Percentage Volume Oscillator (volume MACD). | [pvoLine, signal, hist] |
| alerta.ta.chaikinchaikin(high, low, close, volume, fastLength, slowLength) | Calculates the Chaikin Oscillator from ADL. | series float |
| alerta.ta.adoscadosc(high, low, close, volume, fastLength, slowLength) | Calculates the Accumulation/Distribution Oscillator (Chaikin). | series float |
| alerta.ta.vwapta.vwap(source, anchor?, stdev_mult?) → series float | [vwap, upper, lower] | 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. | series float | tuple |
| alerta.ta.obvobv(close, volume) | Calculates OBV. | series float |
| alerta.ta.mfimfi(high, low, close, volume, length) | Calculates MFI indicator. Accepts mfi(high, low, close, volume, length) or ta.mfi(source, length). | series float |
| alerta.ta.wvadta.wvad() | Calculates Williams Vane Accumulation/Distribution — a volume-weighted directional pressure indicator using (close - open) / (high - low) * volume. | series float |
| alerta.ta.pvtta.pvt → series float | Pine built-in VARIABLE (no parentheses): cumulative sum of the close %-change weighted by volume — cum(change(close)/close[1] * volume). Rises when price gains on volume, falls when price drops on volume. | series float |
| alerta.ta.accdistta.accdist → series float | Pine built-in VARIABLE (no parentheses): cumulative Accumulation/Distribution line — cum(((close-low)-(high-close))/(high-low) * volume). Measures buying vs. selling pressure via the close position inside the bar range. | series float |
| alerta.ta.iiita.iii → series float | Pine built-in VARIABLE (no parentheses): (2*close - high - low) / ((high - low) * volume). Gauges where the close sits in the bar range, normalized by volume. | series float |
| alerta.ta.nvita.nvi → series float | Pine built-in VARIABLE (no parentheses): starts at 1.0 and compounds the close %-change ONLY on bars where volume fell versus the prior bar. Tracks what "smart money" does on quiet days. | series float |
| alerta.ta.pvita.pvi → series float | Pine built-in VARIABLE (no parentheses): starts at 1.0 and compounds the close %-change ONLY on bars where volume rose versus the prior bar. Mirror of ta.nvi for high-activity days. | series float |
| alerta.ta.wadta.wad → series float | Pine built-in VARIABLE (no parentheses): cumulative sum of close - min(low, close[1]) on up-closes and close - max(high, close[1]) on down-closes (0 when unchanged). Larry Williams’ accumulation/distribution measure. | series float |