Auto Anchored VWAP [Auto AVWAP]

818
WHAT THIS IS

Most traders anchor VWAP to the 09:30 market open. But if the market sweeps the overnight high at 10:15 and reverses on heavy volume, the auction's real cost basis resets from that sweep, not from the opening bell. Continuing to calculate volume from 09:30 after a major liquidity event dilutes what active buyers and sellers are actually doing.

Auto SAVWAP automates this process. Instead of forcing you to manually drop Anchored VWAP lines on every swing high or low, it dynamically tracks developing market structure and anchors to meaningful auction pivots (liquidity sweeps, climax absorption, or confirmed swing extremes).

Credit to WillyAlgoTrader for his original Structure-Anchored VWAP, which popularized the idea of using anchored VWAP to measure participant positioning from pivots rather than arbitrary time intervals.

__________________________________________________________________

WHAT IT DOES ON YOUR CHART

1. Clean Visuals (No Step-Jump Clutter)
Traditional anchored VWAP indicators draw continuous lines across the entire chart. Every time an anchor resets, the line jumps vertically, creating a web of artificial zig-zags that hide your candlesticks.
Auto SAVWAP uses Pine Script v6 discrete polylines:
  • Active Corridor: Plots the current SAVWAP midline along with ±1.0σ and ±2.0σ standard deviation corridors, starting strictly from the active anchor origin forward.
  • Historical Spines: Leaves subtle, translucent dashed traces of completed prior moves (cyan for demand, crimson for supply) so you can see where past auction balances settled without cluttering your screen.


2. Autonomous Latching Modes
In settings, choose how you want the anchor to behave:
  • Dynamic Structural Impulse (Default): Latches to overnight high/low sweeps, high-volume climax wicks, or volatility breaks. Extends smoothly with same-polarity extremes without resetting prematurely.
  • Dynamic Swing Extremes: Latches to standard fractal swing highs and lows.
  • Static Session Benchmark: Standard 09:30 RTH / 00:00 UTC session VWAP for classic comparison.


3. Multi-Asset & Feed Protection
  • Wall-Clock Elapsed Age: Displays anchor age in true hours and minutes—consistent whether you are on a 1-minute, 5-minute, or 15-minute chart.
  • Handles CME Futures, Crypto (24/7), and Stocks: Automatically detects asset types and applies appropriate session boundaries.
  • Non-Volume Protection: If applied to cash indices (SPX, NDX) or feeds with no volume, it automatically engages a synthetic tick/range proxy so standard deviation corridors don't collapse.


4. Anchor Quality & Structural Twins (Powered by IsotropicVectorSpace)
Not all pivots are created equal. A slow drift into a high doesn't mean the same thing as a violent rejection sweep on 2x volume.
The indicator imports our open-source companion library, IsotropicVectorSpace, to evaluate pivot geometry:
  • When an anchor forms, it normalizes the pivot's volume surge, wick absorption, angular departure velocity (θ), and higher-timeframe macro alignment into a 4D unit vector.
  • It queries the on-chart memory bank via cosine similarity to see how many prior pivots ("twins") share the same structural signature.
  • It displays the Anchor Conviction rating and matched twin count directly in the corner HUD (e.g. ★★★ 78% | 5 Twins).


__________________________________________________________________

READING THE TELEMETRY HUD

The dashboard in the top-right corner keeps key context in one place (hover over any cell for a tooltip explanation):
  • Active Anchor: The structural level commanding the current line.
  • Elapsed Time: How long the current auction leg has been developing.
  • Current σ & Z-Score: Real-time volatility spread and price distance in standard deviations.
  • Auction Regime:
      • Value Bracket (|Z| < 1.0σ): Rotational, balanced trade.
      • Trend Walk (1.0σ ≤ |Z| < 2.0σ): Directional conviction corridor.
      • Exhaustion (|Z| ≥ 2.0σ): Statistical stretch boundary.
  • HTF Macro & Conviction: Higher-timeframe context, current anchor conviction %, and number of matched historical twins.


__________________________________________________________________

CONTINUOUS DATA WINDOW

For analytical consistency and data export, all core series (SAVWAP, ±1σ, ±2σ, ±3σ, Conviction Score, and Twin Matches) are populated continuously in the TradingView Data Window.

__________________________________________________________________

DISCLAIMER & EDUCATIONAL USE

This indicator is open source and published strictly for educational and analytical purposes. It does not constitute financial advice, investment recommendations, or an automated trading system. Past price action and historical structural patterns do not guarantee future market behavior. Always practice responsible risk management.

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน