PROTECTED SOURCE SCRIPT

Anchored VWAP

53
Anchored VWAP with Auto-Date & SD Bands

Description
Overview The Anchored Volume Weighted Average Price (AVWAP) is a powerful tool used by traders to assess the average price of an asset, weighted by volume, starting from a specific significant event or time. Unlike the traditional VWAP which typically resets daily, the Anchored VWAP allows you to lock the calculation to any specific point in time (e.g., a Swing High/Low, News Event, or Market Open).

This custom implementation enhances the standard AVWAP by adding Standard Deviation Bands and a smart Auto-Date feature for daily traders.

Key Features

Smart Auto-Anchoring:
The script includes a intelligent logic that detects if you are using the default time setting.
If the default time is in the past, the indicator automatically anchors itself to the start of the current trading day (New York Time 00:00).
This means you don't have to manually update the date every day if you just want to see the "Today's AVWAP".
To use a custom fixed date (e.g., for a specific swing low), simply change the Anchor Time input to your desired date.
Standard Deviation Bands:
Includes 3 customizable Standard Deviation (SD) bands.
These bands help identify overextended price levels (Support/Resistance) relative to the volume-weighted average.
Defaults are set to 1.0, 2.0, and 3.0 standard deviations, mimicking classic Bollinger Band-like behavior but anchored to volume.
Visual Customization:
Fully customizable colors for the main AVWAP line and all three band levels.
Includes a background fill for the first band to visually highlight the "value zone".
How to Use

Anchor Settings:
Anchor Time: Set this to the specific date/time you want the calculation to begin. If left at the default, it will track the current day.
Band Settings:
Toggle Band #1, #2, #3 on or off.
Adjust the Multiplier for each band to fit the asset's volatility (e.g., change 2.0 to 2.5 for highly volatile crypto assets).
Methodology The calculation follows the standard VWAP formula but resets accumulation only at the specified Anchor Time:

VWAP = Sum(Volume * Price) / Sum(Volume)
Standard Deviation = Sqrt( (Sum(Volume * Price^2) / Sum(Volume)) - VWAP^2 )

면책사항

해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.