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

  1. Stenozar • 122 days ago #

    Hi Ivan, I can visualize only the central orange line but not the others, do you know why? can you help me?
    Thanks

avatar
Register or

Likes

avatar avatar avatar avatar
Related users ' posts
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...
Nicolas Yes, that's how it goes when using loops..
JosephFelix Hi, Could I please have help with adding these indicators 'on price'? Every indicator that I...
Nicolas Just add it on price by clicking the wrench on the left upper side of the price chart.
Vonasi Jissey - Je pense qu'il est préférable que vous commenciez un sujet sur le forum ProOrder et...
jissey Bonjour Vonasi, ma stratégie est simple; Passage du niveau 50 par la closeline , à l'achat ...
Vonasi I cannot communicate in French with you. Please start a topic in the forums to discuss your ...
Juanjo Hola?. Exactamente cuál es su utilización?.
bolsatrilera Hola Juanjo, su principio esparecido a las bandas de Bollinguer.Las lineas de las bandas son...
swapping Oups nicolas ! je pense que tu a oublié de mettre les variables "setting" accessible en exte...
Nicolas Je viens de vérifier, elles y sont pourtant?
swapping Mea culpa, j'ai fait un bête (copier/coller) et forcément cela ne pouvait pas y être puisqu'...
Nicolas Better to download the file from the page and import it into your platform in order to not c...
marcov66 Hi Nicolas, thanks for sharing the VWAP Date Indicator. It is really powerful. Nevertheless,...
Nicolas Are you sure you are using the same exact date, hours, minutes, seconds for anchor?
BERTJES82 Hi Nicolas, is it possible to adjust the starting date of the VWAP on the charts? Thanks in ...
Nicolas Yes, have a look there: https://www.prorealcode.com/prorealtime-indicators/vwap-date-anchored/
Dadoo Merci Nicolas!
redz bonjour, comment changer les paramettre de la BB en 20 , 2.2 ? hello, how to change BB sett...
Realtime82 Hi I was wondering if it would be possible to get an alert (by sound) when the signals shows...
besserwerden Hi, i like this bollinger moz arrwos. How can I use this indicator in an screener? I want to...
Nicolas No sorry, please use this file instead into a prorealtime trading platform.
rdabbs I just installed this indicator. It opens in its own pane rather than overlaid on the chart ...
Nicolas Just apply it on your price chart instead and you're ok.
diegofe_2000 cordial saludo NICOLAS , gracias por excelente indicador. ¿ es posible obtenerlo en MT4 ? ...
Nicolas Lo siento, pero no estoy trabajando para ayudar a la gente aquí de forma gratuita para promo...
diegofe_2000 Nicolas , gracias por tu atención. La pregunta era por curiosidad (yo no trabajo ni manejo ...
CavalierDeCesDames Bonjour Nicolas, Thanks for your use full job. I tried this indicator on a shorter timefram...
Nicolas You are welcome. I'm glad you like it.
Bolbo It does not appear over the price indicator on V11. Thanks in advance.
Nicolas Rien, il faut l'appliquer sur la charte. Soit le mettre sur le graphique du prix, à l'aide d...
signorini Merci pour votre réponse. Je l'applique sur la charte, j'utilise la petite clé pour effacer ...
signorini Je vous remercie, Nicolas. C'est fixé. Très bon week-end.
Abz  hi , you need to add the indicator from the "price" menu in chart
Francesco Thank you Abz!
phanz Hi Nicolas, this is an interesting strategy. For long position, I assume entry when prices ...
Wing Yes, investigate as much as you want. For more insight, you can view the linet1, linet2 etc....
CKW Hi Wing, Thanks for your sharing. I am still trying to breakdown & understand your code...
Wing Hello CKW. No, the parameter, 7 in this case, is used when calling the RSI indicator to ide...
Pere
8 years ago
Nicolas Use the wrench of the price chart! Upper left of the window
Dymjohn The wrench shows options for the components of the indicator not how to show in the main cha...
Nicolas http://www.prorealcode.com/topic/overlapping-indicators/  
Nicolas
9 years ago
Nicolas You will find the VWAP code from PRT here: https://www.prorealcode.com/topic/is-there-any-wo...
keks Thanks for sharing this wonderful code. Is there a way to draw a horizontal line to plot pre...
taklause Hello, just one question, can it be that this indicator does not work on ProRealTime v12? T...
xel @DerPat - I don't see any question regarding the indicator.  Anyway, I think I give enough l...
diegofe_2000 Xel, tu eres el creador de este indicador? Bueno te  cuento que es muy bueno para hacer est...
xel Buen día @diegofe_2000 -  Claro, mandalo y por aquí lo probamos en otros instrumentos y si g...

Top