TradingView
SandroTurriate
Nov 2, 2015 9:05 PM

VWAP Stdev Bands 

Patterson-UTI Energy, Inc.NASDAQ

Description

This indicator plots VWAP with 2x Standard Deviation bands. This could potentially be used to trade a mean reversion type strategy. Only works on intraday charts.
Comments
mortdiggiddy
The rolling standard deviation calculation for this script is incorrect and borrowed from someone else who started it (not sure who was the genesis of this mistake). For an open source version for daily, weekly, monthly, quarterly, yearly VWAP with 3 band configurations see my script:

tradingview.com/script/dQF211AS-Multi-Timeframe-VWAP/

I have cited the correct rolling weighted standard deviation calculation from a university article and adapted it to pine script.

Also shows previous VWAP values which act as future support/resistance.
cooney_s

IvanLabrie
VWAP, a beautiful took.
I prefer the actual volume profile and manual analysis, but this is very good.
cooney_s
Nice work Sandro! Would you be interested in adding a couple more deviation ratios? I use 1.28 as breakout and 3.09 as a max deviation. They work very well. The typical 2.0 is very common for stocks. Larger deviations are necessary for FX. Using "IDC" data feed for FX allows us to plot Vwap bands on FX, which obviously is not the norm.
techtrader66
Would it be possible to set the deviations also to 0.5. The smallest setting is 1. Thanks
raja74sekhar
Wonderful indicator
prathitkumarr
great work, please let me know on what basis have you marked the red and green circles on the chart
More