OPEN-SOURCE SCRIPT
Daily AVWAPs

Daily AVWAPs is designed for intraday and swing traders who track institutional volume benchmarks. Instead of a single "rolling" line that resets continuously, this indicator identifies the starting timestamp of the last 5 trading sessions and draws five distinct Anchored VWAPs from those exact moments.
This allows traders to see exactly where the average volume-weighted price stands for the current day (1D), yesterday (2D), and the three days prior (3D, 4D, 5D) simultaneously.
Key Features
Polyline Visualization: Unlike standard indicators that plot historical values for every bar (creating a messy "sawtooth" effect), this script uses Pine Script Polylines. It draws clean, static lines starting from the specific anchor point to the present price, mimicking the manual "Anchored VWAP" drawing tool.
Dynamic Session Detection: The script contains zero hardcoded dates. It automatically detects when a new trading day begins based on the chart data. It works seamlessly across all asset classes (Stocks, Crypto, Futures) and automatically adjusts for weekends, holidays, and irregular trading weeks without manual updates.
Unified Color Control: Input colors are synchronized. Changing a color in the settings menu updates both the chart line and the price scale label instantly.
Toggle Controls: Individual checkboxes allow you to toggle any specific VWAP (1D through 5D) on or off to keep your chart clean.
How to Use
Trend Strength: When the 1D, 2D, and 3D VWAPs are "fanning out" in alignment, the trend is strong.
Mean Reversion: In a sideways market, price often gravitates back to the 5-Day VWAP as a "value area."
Support & Resistance: Watch for price to respect the VWAP of a previous high-volume day (e.g., bouncing off the 3D VWAP during a pullback).
Settings
Source: Select the price data source (default is OHLC4).
Colors & Toggles: Use the checkboxes to enable/disable specific lines. Customize the color for each specific day's AVWAP directly in the Inputs tab.
This indicator was adapted and repurposed from the original work by The_Last_Gentleman.
Technical Note: This indicator is optimized for intraday timeframes (1m, 5m, 15m, 1H). Because it uses polyline and array logic to scan specific session timestamps, it calculates exclusively on the most recent bar to maintain high performance.
This allows traders to see exactly where the average volume-weighted price stands for the current day (1D), yesterday (2D), and the three days prior (3D, 4D, 5D) simultaneously.
Key Features
Polyline Visualization: Unlike standard indicators that plot historical values for every bar (creating a messy "sawtooth" effect), this script uses Pine Script Polylines. It draws clean, static lines starting from the specific anchor point to the present price, mimicking the manual "Anchored VWAP" drawing tool.
Dynamic Session Detection: The script contains zero hardcoded dates. It automatically detects when a new trading day begins based on the chart data. It works seamlessly across all asset classes (Stocks, Crypto, Futures) and automatically adjusts for weekends, holidays, and irregular trading weeks without manual updates.
Unified Color Control: Input colors are synchronized. Changing a color in the settings menu updates both the chart line and the price scale label instantly.
Toggle Controls: Individual checkboxes allow you to toggle any specific VWAP (1D through 5D) on or off to keep your chart clean.
How to Use
Trend Strength: When the 1D, 2D, and 3D VWAPs are "fanning out" in alignment, the trend is strong.
Mean Reversion: In a sideways market, price often gravitates back to the 5-Day VWAP as a "value area."
Support & Resistance: Watch for price to respect the VWAP of a previous high-volume day (e.g., bouncing off the 3D VWAP during a pullback).
Settings
Source: Select the price data source (default is OHLC4).
Colors & Toggles: Use the checkboxes to enable/disable specific lines. Customize the color for each specific day's AVWAP directly in the Inputs tab.
This indicator was adapted and repurposed from the original work by The_Last_Gentleman.
Technical Note: This indicator is optimized for intraday timeframes (1m, 5m, 15m, 1H). Because it uses polyline and array logic to scan specific session timestamps, it calculates exclusively on the most recent bar to maintain high performance.
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.