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.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。