VWAP AD
Mar 20, 2023

The VWAP AD indicator is a volume-weighted analysis tool that calculates price deviations around the Volume Weighted Average Price (VWAP) to help traders identify key support, resistance, and mean-reversion levels.
Usage
The script is used to identify overextended price conditions relative to volume-weighted averages. Traders typically monitor the deviation bands for potential reversal or breakout signals.
- Basis Line: Represents the core VWAP, serving as the primary equilibrium level.
- Deviation Bands: The red upper bands and green lower bands represent areas where price is significantly deviating from the weighted mean. The space between the 2nd and 3rd deviation levels is highlighted to show extreme zones.
- Cross Monitor: When enabled, a table in the bottom-right corner displays how many times the price has closed beyond the 2nd deviation levels within a specific lookback period. High counts may indicate a strong trending environment, while low counts suggest a range-bound market respecting the bands.
Details
The script utilizes custom Pine Script functions to calculate a weighted mean and a weighted average deviation. Unlike standard Bollinger Bands which use simple moving averages and standard deviation, this indicator incorporates volume into both the mean and the deviation calculation.
An optional Log-space setting is included, which performs calculations on the natural logarithm of the price. This is particularly useful for assets with high volatility or those viewed on logarithmic scales, as it normalizes the percentage distance of the deviations.
Settings
Optional
- Log-space: When enabled, calculations are performed in logarithmic space to provide more consistent percentage-based deviations.
Strategy Modification
- Length: The number of bars used to calculate the weighted mean and deviation.
- Source: The price input used for calculations (default is Close).
Deviation Cross Monitor
- Show Table: Toggles the visibility of the statistics table in the bottom-right corner.
- Table Lookback Length: Determines the historical window (in bars) used to count price crosses beyond the deviation levels.
FAQ
How do I access the VWAP AD?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
What is the difference between this and standard VWAP?
While standard VWAP often resets daily or at specific sessions, this version uses a rolling window (Length) and employs a specific weighted average deviation method rather than just standard deviation.
Can I use this for intraday trading?
Yes, the VWAP AD is effective for intraday trading as it dynamically adjusts to volume clusters, helping identify where the "value" area of the current session or window resides.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.