VWAP indicator based in the built-in one but completely rewritten. Features:
- more standard deviation bands, up to 3.
- added the possibility to not anchor the VWAP but make it a rolling one instead, like a VWMA, being in this case able to specify days, hours or minutes for the rolling VWAP.
- for rolling VWAPs, the indicator doesn't count bars but real days, hours or minutes instead, so regardless of the chart timeframe the indicator will always show the correct values.
- for rolling VWAPs, if you specify x days as the rolling time, the indicator will always count exactly 24 hours from the current time backwards - so, from the same time yesterday or x days ago.
- in rolling VWAPs, although the indicator counts real time elapsed as per your settings and not chart bars, it will automatically skip holidays, so you needn't worry about that.
- for the anchored VWAP, added the possibility to specify custom session times (for example, for ES 0830-1500, instead of Globex, which is the Tradingview default as of today)
- complete customization of all fills and linetypes
For illustration purposes in the attached 1min chart I have:
- a 30min rolling VWAP in BLUE with no standard deviation plots,
- a 1 day rolling VWAP in RED with standard deviations in light red and green (these are the default settings)
- a RTH-session-anchored VWAP in ORANGE with standard deviations in light orange and light blue