VWAP-Bollinger Bands
Apr 19, 2021

The VWAP-Bollinger Bands indicator combines Volume Weighted Average Price (VWAP) with volatility bands to identify potential breakout and reversal points based on volume-backed price deviations.
Usage
The Usage of the VWAP-Bollinger Bands tool revolves around identifying trend strength and overextended price action. Unlike traditional Bollinger Bands that use a simple moving average of price, this script uses VWAP as the core source, ensuring that the bands account for volume distribution.
- Long Entry: A buy signal is generated when the price High crosses above the Upper Band. This suggests strong bullish momentum supported by volume.
- Long Exit/Short Signal: The strategy closes long positions when the price Low crosses below the Lower Band, indicating a potential trend reversal or breakdown in volume support.
The indicator is versatile across different asset classes, with recommended lookback periods tailored to specific markets:
- Crypto: 30 periods (approximating a monthly cycle).
- Forex: 24 periods.
- Stocks: 20 periods (approximating a trading month).
Details
The script calculates Bollinger Bands by applying a Standard Deviation multiplier to a basis line. The unique aspect of this implementation is the use of ta.vwap as the primary source for the basis calculation. By applying a Simple Moving Average (SMA) to the VWAP, the indicator smooths out volume-weighted fluctuations to create a dynamic baseline. The bands then expand and contract based on the standard deviation of that VWAP source over the user-defined length.
Settings
- Length: Determines the lookback period used for the Standard Deviation calculation.
- StdDev: The multiplier applied to the standard deviation to determine the width of the upper and lower bands.
- Offset: Shifts the bands forward or backward on the x-axis (time).
FAQ
How do I use the VWAP-Bollinger Bands on different timeframes?
While the default settings are optimized for daily charts to represent monthly cycles, users can adjust the "Length" input to suit intraday or weekly scalping and swing trading strategies.
What does a cross of the upper band signify?
A cross above the upper band by the bar's high indicates that price is moving significantly higher than the volume-weighted average, often signaling the start of a strong momentum phase.
How can I access the VWAP-Bollinger Bands?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.