AG Pro Anchored VWAP Event Map [AGPro Series]AG Pro Anchored VWAP Event Map
Overview / What it does
AG Pro Anchored VWAP Event Map is an overlay built to organize price action around Anchored VWAP after a meaningful starting point has been defined. Instead of treating VWAP as a single static reference, this script focuses on the relationship between price and a chosen anchor, then maps how the market behaves after that anchor is established. The goal is not to forecast price, but to make post-anchor structure easier to read in a consistent visual framework.
The script supports three anchor paths: Open, Swing, and Event. Open mode can reset the anchor from a daily, weekly, or monthly opening context. Swing mode rebuilds the anchor from a confirmed pivot high or pivot low. Event mode is designed for expansion-type situations and can anchor from a range expansion, a volume spike, or a breakout impulse. This creates a flexible workflow for traders who want to study how price responds to AVWAP under different structural conditions without switching tools.
Once the anchor is set, the script plots the Anchored VWAP, builds a distance band around it, tracks reclaim and reject behavior, and summarizes the current post-anchor bias in a compact panel. The result is a clean event map that can be used to study acceptance, rejection, recovery, or continuation around an anchored reference level. It is meant to simplify interpretation, not replace market context.
A key design goal of this script is clarity. The visual package is intentionally structured so the anchor, AVWAP path, distance zone, signal labels, and bias panel can be read together without turning the chart into a dense signal board. In practice, that means the indicator is most useful when it is treated as a contextual decision-support tool rather than a standalone trigger engine.
Unique Edge
The main distinction of this script is that it is not built as a generic VWAP overlay. Its emphasis is on post-anchor behavior. That means the visual logic starts from the selected anchor event and then evaluates how price interacts with the anchored VWAP afterward. In other words, the anchor is not only a starting point for the line itself; it is the center of the script's interpretation model.
Another differentiator is the combination of multiple anchor sources within one workflow. Traders can use opening-session logic, confirmed swing logic, or event-driven logic depending on the type of market behavior they are studying. This makes the indicator suitable for different styles of chart review while keeping the interface straightforward.
The distance band adds a second layer of structure. Rather than reading only the AVWAP line, users can also see whether price is operating close to the reference, stretched around it, or reacting from the upper or lower band zone. This helps frame whether a move appears to be re-accepting the anchored average, rejecting away from it, or trading in a more extended state.
The script also tries to keep the signal layer readable through selective label logic. Reclaim and reject markers are not intended to flood the chart. They are there to mark notable interactions with the anchored framework, while the panel provides a compact summary of the active anchor, current bias, distance, and latest signal state.
Methodology
The script begins by defining an anchor source. In Open mode, the anchor can be tied to a daily, weekly, or monthly opening transition. In Swing mode, the script waits for a confirmed pivot high or pivot low based on the selected swing length. In Event mode, the anchor is created only when a qualifying market event appears according to the selected event model.
For event-based anchoring, the script can use one of three internal conditions. Range Expansion looks for directional range behavior relative to ATR and recent structure. Volume Spike looks for directional participation with higher-than-average volume and a meaningful candle body fraction. Breakout Impulse looks for directional movement through recent extremes with supportive range and volume characteristics. These are practical anchor candidates for traders who want the AVWAP to begin from a meaningful change in behavior rather than from a calendar reset.
After the anchor is created, the script calculates Anchored VWAP using cumulative price-volume data relative to that anchor point. From there, it builds a distance band around the AVWAP. The band can be defined by ATR or percentage mode, depending on whether the user prefers a volatility-based or proportional framework.
Post-anchor bias is then derived from a simple internal score. The script evaluates whether price is above or below AVWAP, whether the AVWAP slope is improving or weakening, and whether price is trading beyond the distance band. This produces a practical Bullish, Bearish, or Neutral state. The intention is not to compress market structure into a perfect score, but to provide a compact directional read that can be used alongside the chart.
Reclaim and reject logic is based on how price interacts with the AVWAP and the surrounding band after the anchor is active. A reclaim highlights price moving back through the anchored reference with confirmation, while a reject highlights failure or pushback behavior around the band area. These events are intended as structural observations rather than guaranteed trade setups.
Signals & Alerts
The script includes reclaim and reject signal logic for both directions. These labels are designed to call attention to notable interactions with the anchored framework after the selected anchor becomes active. In practical use, reclaim behavior can be interpreted as a sign that price is attempting to re-establish acceptance relative to AVWAP, while reject behavior can suggest rejection away from the mapped zone.
Because market structure can become noisy, the script also includes signal spacing and density controls to reduce repetitive label clutter. This is especially relevant when anchored conditions remain active for long periods and price repeatedly tests the same area. The goal is to preserve readability while still marking relevant interactions.
Alert conditions are included for bullish reclaim, bearish reclaim, bullish reject, bearish reject, and a broader any-signal state. These alerts are deterministic within the script's ruleset, but they should still be used as workflow tools rather than interpreted as self-sufficient trading instructions.
Key Inputs
Anchor Source:
Choose whether the indicator should anchor from Open, Swing, or Event logic.
Open Anchor Type:
In Open mode, select daily, weekly, or monthly opening context.
Swing Length:
Controls how confirmed pivot highs and lows are detected in Swing mode.
Event Type:
In Event mode, choose between Range Expansion, Volume Spike, or Breakout Impulse as the anchor trigger model.
Event Lookback / Multipliers / Cooldown:
These inputs control how strict the event selection becomes and how frequently new event anchors can appear.
Band Mode:
Switch between ATR-based and percentage-based distance bands.
ATR Band Multiplier / Percent Band:
Define the width of the distance zone around Anchored VWAP.
Signal Density:
Helps regulate how aggressively reclaim and reject labels are displayed.
Panel and Label Size:
Allows the visual layout to remain readable across different chart styles and screen sizes.
Show Anchor Label / Show Anchor Level / Show Bias Ribbon:
These toggles control the visibility of anchor-focused visual elements and optional bias coloring.
Limitations & Transparency
This script is an interpretation aid. It does not identify the single correct anchor for all market environments. Different anchor choices can lead to different AVWAP paths, different reclaim or reject readings, and different conclusions. That is normal, and it is one of the reasons the script provides multiple anchor modes.
Event-based anchors depend on internal threshold logic such as ATR expansion, volume conditions, and breakout behavior. On some symbols or timeframes, those filters may trigger more frequently or less frequently than expected. Users may need to adjust event sensitivity and band settings to fit the market they are analyzing.
Reclaim and reject states are rule-based. They are not a guarantee of continuation, reversal, or follow-through. In sideways conditions, repeated AVWAP interactions can occur without producing a sustained directional move. The script can help organize those interactions visually, but it cannot remove market uncertainty.
The post-anchor bias is intentionally simplified. It is designed for readability, not for complete market classification. It should be read together with broader price structure, higher-timeframe context, liquidity conditions, and user-defined execution rules.
Risk Disclosure
This indicator is for chart analysis and workflow support. It does not provide financial advice, investment advice, or guaranteed outcomes. Markets involve risk, and any trading or investing decision remains the sole responsibility of the user.
No indicator can remove uncertainty from live markets. Anchored VWAP, reclaim behavior, reject behavior, and bias states are analytical references only. They should be validated with independent judgment, risk management, and broader market context before being used in any decision-making process.
Use this script as a structured visualization tool, not as a promise of performance or a substitute for disciplined trade planning.
Indicador Pine Script®






















