OPEN-SOURCE SCRIPT
Multi-AVWAP - Anchored - Gold -V1

This script uses multi-day anchored VWAP.
What it does
This study plots multiple Anchored VWAP (AVWAP) lines from recent session starts (1, 2, 3, 4, 5, 10, 15, 20, 30, 90).
from the anchor forward. Each line shows a live label with the line’s current value and the current price for quick distance checks.
Best practices
Use on intraday timeframes for session-anchored lines.
Ensure the chart has enough history loaded for the longest lookback (e.g., 90 days).
For crypto or 24×7 markets, set session to a 24h window (e.g., 0000-2359) and turn off the exclude-ETH toggle if you want full-time anchoring.
Limitations
Different exchanges/markets use different RTH windows—pick the one that matches your venue.
Corporate actions/volume adjustments can make small discrepancies across platforms.
If no RTH exists on the exact calendar day (holidays), the 90d line anchors to the most recent available RTH open before that date.
What it does
This study plots multiple Anchored VWAP (AVWAP) lines from recent session starts (1, 2, 3, 4, 5, 10, 15, 20, 30, 90).
from the anchor forward. Each line shows a live label with the line’s current value and the current price for quick distance checks.
Best practices
Use on intraday timeframes for session-anchored lines.
Ensure the chart has enough history loaded for the longest lookback (e.g., 90 days).
For crypto or 24×7 markets, set session to a 24h window (e.g., 0000-2359) and turn off the exclude-ETH toggle if you want full-time anchoring.
Limitations
Different exchanges/markets use different RTH windows—pick the one that matches your venue.
Corporate actions/volume adjustments can make small discrepancies across platforms.
If no RTH exists on the exact calendar day (holidays), the 90d line anchors to the most recent available RTH open before that date.
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.