VWAP Rolling

This indicator, referred to here as "VWAP Rolling," is a technical tool designed to provide insight into the average price at which an asset has traded over a specified rolling period, along with bands that can indicate potential overbought or oversold conditions based on standard deviations from this rolling VWAP.

Purpose and Utility:
The indicator's primary purpose is to track the volume-weighted average price (VWAP) over a specified period, typically 20 bars in this script. The VWAP Rolling is particularly useful in assessing the average price level at which a security has been traded over the recent history, incorporating both price and volume data. This can help traders understand the prevailing market price in relation to trading volume.


1. Dynamic Average: Unlike fixed VWAP indicators that calculate over a specific session, the rolling VWAP adapts to recent price and volume changes, offering a more responsive and dynamic average.
2. Volume Sensitivity: By weighting prices by volume, the rolling VWAP gives more importance to periods with higher trading activity, providing a clearer picture of where significant trading has occurred.
3. Standard Deviation Bands: The inclusion of standard deviation bands (configurable as 1x and 2x deviations in this script) around the rolling VWAP adds a layer of analytical depth. These bands can serve as potential areas of support and resistance, highlighting deviations from the mean price.

Singularization and Interpretation:
The VWAP Rolling indicator is singularized by its ability to adapt to changing market conditions, offering a dynamic representation of the average price level influenced by volume. To use and interpret this indicator effectively:

• Rolling VWAP Line: The main line represents the rolling VWAP. When this line trends upwards, it suggests that recent trading has been occurring at higher prices weighted by volume, indicating potential bullish sentiment. Conversely, a downtrend in the rolling VWAP may indicate bearish sentiment.
• Standard Deviation Bands: The upper and lower bands (configurable as 1x and 2x standard deviations from the rolling VWAP) are used to identify potential overbought or oversold conditions. A price crossing above the upper band may indicate overbought conditions, signaling a potential reversal or correction downwards. Conversely, a price crossing below the lower band may suggest oversold conditions, potentially signaling a bounce or reversal upwards.
• Band Interaction: Watch for interactions between price and these bands. Repeated touches or breaches of the bands can provide clues about the strength of the prevailing trend or potential reversals.

Interpretative Insights:

• Trend Confirmation: The direction of the rolling VWAP can confirm or contradict the prevailing price trend. If the price is above the rolling VWAP and the VWAP is rising, it suggests a strong bullish sentiment. Conversely, a falling rolling VWAP with prices below might indicate a bearish trend.
• ean Reversion Signals: Extreme moves beyond the standard deviation bands may signal potential mean reversion. Traders can look for price to revert back towards the rolling VWAP after such deviations.

In summary, the VWAP Rolling indicator offers traders a flexible tool to gauge average price levels and potential deviations, incorporating both price and volume dynamics. Its adaptability and standard deviation bands provide valuable insights into market sentiment and potential trading opportunities.
Release Notes:
Update: Added a same-length SMA and displayed the percentage distance between them in a table.

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.


The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?