OPEN-SOURCE SCRIPT

Daily AVWAPs

65
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.

免责声明

这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。