OPEN-SOURCE SCRIPT

VWAP (PM, AH, Regular session)

Updated
VWAP Indicator

This TradingView script calculates and visualises the Volume Weighted Average Price (VWAP) for both premarket + afterhours and regular trading sessions. It distinguishes between two VWAPs:

  1. Regular Session VWAP: This line only accounts for intraday volume from 9:30 AM to 4 PM, providing a clear view of price action during the regular trading hours.
  2. Day VWAP: This line incorporates all volume, including premarket (4 AM to 9:30 AM) and after-hours (4 PM to 8 PM) trading, offering a comprehensive perspective on price movement throughout the entire trading day.


This script is useful for traders looking to analyse price action and volume dynamics throughout the trading day.
Release Notes
Fixed bug for daily chart.
Release Notes
EOD line bug.
Volume Weighted Average Price (VWAP)

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer