Indicator
NAS100
NZDUSD
Breakout
XAUUSD
Commodities
Forex
Fibonacci
EURUSD
Bollinger
GBPUSD
BTCUSD
SMC
VWAP
Indices
Stocks
Crypto
USDJPY
Scalping
Professional-grade Anchored VWAP

26/11/2025
Desktop
Since 26/09/2025
This is a professional-grade custom indicator for cTrader designed to calculate the Anchored Volume Weighted Average Price (AVWAP). Unlike standard VWAP indicators that reset daily, this tool allows traders to "anchor" the calculation to a specific high-impact event—such as a CPI release, a market crash, or the start of a trend—providing a true institutional view of the average price since that moment. It also includes Volume-Weighted Standard Deviation Bands to identify overextended price action.
1. Core Calculation & Anchoring Logic
- Precision Anchoring: The indicator utilizes a user-defined
Anchor Date(e.g., "2024-01-01 10:00") to strictly ignore all data prior to that specific minute. This ensures the average price reflects only the participants involved in the current specific move or timeframe. - Institutional Formula: It calculates the true VWAP using the cumulative sum of (Price × Volume) divided by the cumulative sum of Volume.
- Typical Price Source: By default, it uses the "Typical Price"
(High + Low + Close) / 3for calculations, which is the standard method used by institutional algorithms to determine fair value, though this can be adjusted to Open or Close prices.
2. Advanced Volatility Bands
To help traders gauge market extremes, the indicator calculates two sets of dynamic bands based on Volume-Weighted Variance:
- Band 1 (The Value Zone): Defaults to 1.0 Standard Deviation. This inner zone typically contains the "fair value" noise of the market. A breakout from this zone often signals momentum.
- Band 2 (The Extreme Zone): Defaults to 2.0 Standard Deviations. Prices reaching this outer band are statistically overextended, often signaling potential mean-reversion opportunities (fading the move) or strong trend exhaustion.
- Independent Control: Both bands include individual
Showtoggles (ShowBand1,ShowBand2) and customizable deviation multipliers (Band1Dev,Band2Dev), allowing for clean charts tailored to specific volatility strategies.
3. Visual & Operational Logic
- Strategic Color Coding:
- Yellow (VWAP): Acts as the central "magnet" or trend baseline.
- Lime Green (Band 1): Represents the immediate support/resistance "Value Area".
- Red (Band 2): Highlights extreme deviations where reversal probability increases.
- State Preservation: The code utilizes
IndicatorDataSeriesfor internal state variables (_cumVol,_cumPV), ensuring that values remain accurate during historical recalculations and real-time updates without repainting errors.
Logic Flow Summary
- Initialize: Parse the user's specific Anchor Date string into a system DateTime object.
- Filter Time: For every bar, check if the current time is before the Anchor. If so, return
NaN(draw nothing) and reset cumulative counters to zero. - Accumulate Data: Once the Anchor time is reached, begin adding the current bar's Volume and (Price × Volume) to the running total.
- Compute VWAP: Divide the Running PV Total by the Running Volume Total to get the VWAP line.
- Compute Variance: Calculate volume-weighted variance and derive the Standard Deviation.
- Plot Bands: Add/Subtract the calculated Deviation from the VWAP to plot the Lime and Red bands.
0.0
Reviews: 0
Customer reviews
No reviews for this product yet. Already tried it? Be the first to tell others!
You may also like
Indicator
RSI
Quantitative Qualitative Estimation
The QQE (Quantitative Qualitative Estimation) Weighted Oscillator improves its original version by weighting the RSI.



















.png)