Rolling VWAP: A Dynamic Volume-Weighted Average Price Indicator

Rolling VWAP: A Dynamic Volume-Weighted Average Price Indicator

1. Introduction

The Volume Weighted Average Price (VWAP) is a widely used technical analysis indicator that reflects the volume-weighted average price over a period of time. It is especially useful for traders because it provides a reference of fair value for an asset by taking into account both price and volume of transactions.

The Rolling VWAP, or dynamic VWAP, is a variant of the traditional VWAP that calculates the volume-weighted average price continuously over a defined number of bars. Instead of resetting at the beginning of each day, like a typical VWAP, the Rolling VWAP continuously recalculates over the most recent bars, allowing for a continuous and adaptive tracking of the asset’s value.

This article explores how the Rolling VWAP works, its key components, and how it can be used to improve precision in trading decisions.

2. Description of the Rolling VWAP Indicator

The Rolling VWAP combines the price and volume of recent bars to offer a dynamically adjusting volume-weighted average. By updating continuously, it provides a real-time view of the weighted average price, making it a useful tool for identifying trends as well as short-term support and resistance zones.

Additionally, the Rolling VWAP can be accompanied by standard deviation bands that help identify overbought and oversold zones. These bands provide a visual indication of where the price has moved away from its weighted average value, allowing traders to anticipate potential reversals or trend continuations.

Key Components of the Indicator:

  1. Data Source (src): This is the price value used for the indicator’s calculations. By default, it uses the custom close price (customclose), but it can be adjusted depending on the trader’s needs.
  2. Minimum Bars (minBarsInput): This parameter defines the minimum number of bars to calculate the VWAP. The higher the number of bars, the more stable the Rolling VWAP value will be.
  3. Standard Deviation Multipliers (stdevMult1, stdevMult2, stdevMult3): These multipliers are used to define the standard deviation bands around the VWAP, helping traders identify potential support and resistance levels.
  4. Show Bands (showbands): An optional parameter to toggle the visibility of the standard deviation bands.

3. Indicator Settings

The Rolling VWAP can be configured according to the trader’s needs, adjusting several parameters to suit different trading styles or timeframes. The most important configurable parameters are:

1. Data Source (src):

The data source (src) is the price used to calculate the VWAP. Normally, the closing price is used, but it can be adjusted to other values such as the opening price, high, or low of each bar.

2. Minimum Bars (minBarsInput):

The minBarsInput parameter sets the minimum number of bars used to calculate the VWAP. A typical value might be 10, but it can be adjusted depending on the timeframe and market type. This value ensures that the calculation is stable enough to avoid excessive fluctuations in volatile markets.

3. Standard Deviation Multipliers (stdevMult1, stdevMult2, stdevMult3):

The Rolling VWAP includes three standard deviation bands adjustable through the multipliers:

  • stdevMult1: Adjusts the first standard deviation band, representing a smaller deviation from the VWAP.
  • stdevMult2: Adjusts the second standard deviation band, representing a more pronounced deviation.
  • stdevMult3: Adjusts the third band, indicating an even larger deviation, useful for identifying extreme price movements.

4. Show Bands (showbands):

The indicator also includes the option to toggle the visibility of the standard deviation bands. This is useful when traders prefer a cleaner chart or only need the VWAP calculation without additional visual references.

4. Rolling VWAP Calculation

The Rolling VWAP calculation follows a dynamic structure, adapting to the timeframe being used. The number of bars used to calculate the VWAP adjusts depending on the current timeframe of the chart. Here’s how the calculation behaves across different timeframes:

  1. Intraday Timeframes: For timeframes shorter than a day, the number of bars equals the value of the minBarsInput parameter.
  2. Daily and Weekly Timeframes: For daily charts, a minimum of 22 bars is used, while weekly charts use up to 90 bars.
  3. Monthly Timeframes: On monthly charts, the Rolling VWAP uses up to 252 bars, equivalent to roughly one year of data.

This dynamic adjustment ensures that the VWAP remains relevant and effective across different market conditions and timeframes.

VWAP and Standard Deviation Calculation:

The Rolling VWAP is calculated as the sum of the price multiplied by the volume, divided by the total volume of the selected bars. The formula is:

RollingVWAP=∑(Price×Volume)/∑Volume

The standard deviation of the volume-weighted price is then calculated to generate the upper and lower bands, providing a measure of market volatility.

5. Rolling VWAP Bands

The bands that accompany the Rolling VWAP offer valuable visual references for traders. These bands are calculated using the standard deviation of prices relative to the VWAP and are multiplied by adjustable values to define levels of price deviation from the weighted average.

The bands can be interpreted as follows:

  • Upper Bands: Indicate areas where the price may be overbought and potentially ready for a downward correction.
  • Lower Bands: Represent areas where the price may be oversold, signaling potential buying opportunities.

By including three levels of bands with different standard deviation multipliers, the indicator allows traders to identify both short-term reversals and extreme price movements that may indicate the end of a trend.

6. Conclusion

The Rolling VWAP is a powerful tool for traders who want an adaptable indicator that not only provides a volume-weighted average price but also dynamic support and resistance levels through its standard deviation bands. Its ability to adjust to different timeframes and its versatility make it useful for both intraday trading and longer-term analysis.

This indicator can be an excellent addition to any trader’s toolkit, improving precision in identifying entry and exit points, as well as assessing the strength of a trend.

Share this

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials

avatar
Register or

Likes

avatar avatar
Related users ' posts
Khaled
2 years ago
Nicolas
3 years ago
DELBERT Bonsoir , Nicolas , j'ai transféré votre indicateur sur ma PRT 10,3 et j'ai un méssage d'ére...
Nicolas Vous pouvez essayer en remplacant la ligne avec: vwapsd = sqrt(average[lengthz](square(clo...
DELBERT Bonsoir , merci Nicolas , a bientôt .
larouedegann
3 years ago
TWAP
TWAP
0
Indicators
Sever
3 years ago
Jigsaw20000 Bonjour, Je voudrais mettre le liens du code en format .itf mais je n'y arrive pas , quelqu'...
Corto78 Il faut aller dans la liste des ProBacktest & Trading Automatique (là ou tu as créer ton...
Malloc Bonjour, Votre système a l'air intéressant et prometteur mais en l'état il est inutilisable...
Nicolas Sorry there was a small issue in the code, i have changed the attached itf file and updated ...
Mitchy14 Hi Nicholas, apologies, I am usually fairly good at implementing your creations (for which I...
Nicolas Are you using PRT version pre-v11? TIMEFRAME for indicators is possible since months for pro...
Monobrow Hi Daniele Thank you for the indicator, it looks very good. However, I have a problem so...
avatar
Anonymous Thanks very much for sharing, look forward to testing this idea out.
mathiasKN Thank you Daniele for making this script, I know its been some time since the release but wo...
Nicolas Il doit s'agir d'un mauvais copier/coller. Je suggère de télécharger le fichier itf contenu ...
Bard Hello @Nicolas, I can get this to display in a separate indicator panel but not on Price as ...
Stenozar Hi @Nicolas, how can I put the bands on price? Thanks, Stefano
Fabian Hi IV Mcm, have you drawn the rectangles (Dinamic, Range) by yourself in the chart or are...
IV Mcm Myself to illustrate ;)
GARNIEPI hello I am looking for an anchored vwap intraday, indicator which allows you to visualize th...
withoutwings To be able to flexibly wrap around the full 24h (i.e. past midnight), or to use just a singl...
Vonasi A modified version of this indicator can be found here: https://www.prorealcode.com/topi...
arnaudat Merci nicolas, j'ai déjà pris cette version et en plus je suis sur les futures. Par contre d...
ullle73 hi nicolas, when im making a strategy out of this i get the error "PRC_VWAP z-score" called ...
Nicolas Please open a new topic in the ProOrder forum section and post the code there in order to ch...
Brisvegas Thats Awesome thank you
Vinks_o_7 Thanks Vonasi !
Tarkus1954 Hi. When I add this indicator it loads it in a separate window. How do I get the indicator...
Nicolas By adding it on the price chart. Use the wrench on the left upper side of the price chart.
ervelasco Thank you for your posting! I was missing the indicator when trying to select Keltner bands ...
ottimo Thank you Nicolas, great indicator, N. 1
tikigai Merci Nicolas! First Happy new Year 2020. Very good indicator BUT (yes the french "oui, m...
Nicolas Whats prorealtime version? Did you try in version prior to v11? indicator's call and loop ca...

Top