OPEN-SOURCE SCRIPT
Volume Problem

Hello TradingView Community, I'm posting this in hopes one of y'all have answers. I was attempting to make my own VWAP based on one minute data since it's the best we can do and I stumbled across this when I noticed the values were abnormally low. For some reason a cumulative day's worth of 1minute volume is not equal to the actual day's volume. Its significantly lower. If anyone has any idea why or if I made an error in my script can point it out to me I would greatly appreciate it, thank you.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.