VWAP modified code to remove the annoying lines

The last time I posted the AFL for VWAP for Weekly/Monthly timeframe here, there was some issue with VWAP lines abruptly going to zero before start of a new week/month. I used to find it very annoying and finally, I found the mistake in the previous code and fixed it. At the end of this post I have attached is the new VWAP code & also posted a link to google doc


This is how previous version of code used to show VWAP — ugly 🙁

Vwap Weekly Annoying Line2 Vwap Modified Code To Remove The Annoying Lines
This is with modified code on weekly timeframe —
Vwap Weekly Smooth Transition Vwap Modified Code To Remove The Annoying Lines
This is new code showing monthly VWAP
Vwap Monthly Smooth Transition Vwap Modified Code To Remove The Annoying Lines

Here is the link of the google doc where I posted the code:

[googleapps domain=”docs” dir=”document/pub” query=”id=1yax-X9mU3vurdIfUhwrWV2B2_njEw2QD-3KtNqA9DhE&embedded=true” /]