Skip to main content
On this page

VWAP Stdev Bands v2: Formula, Band Settings, and Session Limits

· 3 min read
Pineify Team
Pine Script and AI trading workflow research team

VWAP Stdev Bands v2 plots a volume-weighted average with several deviation bands. The bands describe dispersion around that average; touching an outer band does not establish a reversal probability.

VWAP Stdev Bands v2 Indicator showing multiple standard deviation levels on TradingView chart

What this implementation calculates​

Pineify's VWAP Stdev Bands v2 Mod uses each bar's midpoint, hl2 = (high + low) / 2, weighted by that bar's volume. Within a reset period, its calculation is:

  • VWAP = sum(volume × hl2) / sum(volume).
  • Variance = max(sum(volume × hl2²) / sum(volume) − VWAP², 0).
  • Deviation = square root of that variance.
  • Upper/lower band = VWAP plus/minus the selected multiple of deviation.

This is a calculation from aggregated bars, not the exact average of every transaction. Changing the chart interval can change the result. Missing or unsuitable volume also changes its usefulness.

Band settings​

Upper and lower multipliers are configured separately. The defaults are 1.28, 2.01, 2.51, 3.09, and 4.01 on each side. These are distances in the script's deviation units, not guaranteed percentages of future prices. Financial observations are neither independent nor reliably normally distributed; this page does not assign a 68%, 95%, or 99% probability to a band.

A price above VWAP means the current price exceeds the calculated period average. It does not identify institutional ownership, an objectively fair value, or a required return to the mean. Sustained trends can remain beyond an outer band.

Check the reset before interpreting a chart​

The local implementation requests a daily timestamp and resets its accumulators when that requested value changes. It does not expose a configurable anchor or source input. Verify the reset marker against the symbol's exchange session and your chart interval: a requested daily value's historical and realtime alignment should not be assumed to coincide with every market's session opening.

The accumulators can also remain unavailable before the first detected reset in the loaded history. Daily or higher charts are unsuitable for interpreting these as a conventional intraday session distribution. For a separate explanation of configurable VWAP anchors, see TradingView's VWAP documentation.

Define a testable band setup​

Specify whether your entry requires a touch, an intrabar cross, or a completed candle returning inside a band. Choose the session, permitted trading hours, exit rule, and position size before evaluating results. Compare trend days with range days and include fees, slippage, and missed fills.

A useful trade log records the band value available at entry, the reset time, and the actual execution price. Do not use the completed session's final bands to justify an earlier entry. No SPY, NVDA, TSLA, or Bitcoin performance results are established by this tutorial.

Pineify's registered version is a paid indicator using the current symbol and chart interval. Check its available inputs and your plan in the editor before building a strategy around it.

Pineify Website showing no-code Pine Script creation
How to search for and add indicator pages in the Pineify editor