OPEN-SOURCE SCRIPT

AlgoStorm Institutional VWAP Suite (IVS)

590
AlgoStorm Institutional VWAP Suite (IVS)

A multi-anchor, institutional-grade VWAP framework covering five distinct time horizons simultaneously — Daily, Rolling Time-Window, NY, European/London, and Asian/Pacific — with volume-weighted standard deviation bands, a configurable color suite, a live info table, and full alert coverage.

The AlgoStorm Institutional VWAP Suite (IVS) is built on a single conviction: VWAP is not a single line, it is a layered structural map. Professional traders and institutions do not reference one VWAP — they read the relationship between multiple anchored VWAPs across sessions and time windows to understand where the auction is relative to where it has been. IVS makes this entire multi-anchor framework available in one cohesive, configurable overlay, designed for futures, equities, forex, and any instrument with reliable volume data.

Why Multiple VWAPs?
Each anchor tells a different story. The Daily VWAP defines where the current session is balanced. The Rolling VWAP reflects dynamic equilibrium over a configurable time window, acting as a responsive benchmark for swing and position traders. The session VWAPs — NY, London, and Asia — reveal the price acceptance or rejection developing within each regional trading block. When price holds above the NY VWAP but stalls beneath the Daily VWAP, that tension itself is actionable information. IVS maps all five references simultaneously so those relationships are always visible.

Technical Architecture
Each VWAP anchor is computed through a dedicated VwapInstance User-Defined Type (UDT). This object maintains the running sums required for both the VWAP price and the volume-weighted population standard deviation, using the mathematically correct formula σ² = E[x²] − E[x]². Deviation bands derived from this are true volume-weighted standard deviations — not ATR estimates or fixed percentage offsets.

The Rolling VWAP runs on a High-Fidelity Sliding Time-Window Engine. Rather than anchoring to a calendar boundary, it maintains four parallel arrays (price-volume, volume, squared price-volume, and timestamps) to continuously evict data older than the user-defined window. This produces a genuinely time-accurate rolling VWAP at any timeframe, not a bar-count approximation.

Session resets (NY, London, Asia) use a one-minute anchor window via time("1", range, timezone), which fires accurately across all chart timeframes — not just 1-minute charts.

Features & Functionality
  • Daily VWAP: Anchors at each calendar day open using hlc3 as the price source. Resets correctly on the first bar of every session including overnight gaps. Paired with optional volume-weighted standard deviation bands (two configurable multipliers for ±1σ and ±2σ levels).
  • Daily VWAP Wave (H/L): Plots two companion VWAPs anchored to the daily high and low respectively, with a filled channel between them. This "wave" shows the intraday auction range as a structural envelope rather than a single midline — price inside the wave indicates balance, price outside indicates initiative direction.
  • Rolling Time-Window VWAP: Fully configurable window in days, hours, and minutes. Defaults to 1 day. Paired with optional volume-weighted standard deviation bands. Unlike a fixed daily anchor, the rolling VWAP adapts continuously, making it a natural trend reference for intraday and swing traders.
  • NY Session VWAP: Anchors at 09:30 ET (New York open). The primary reference for equities and US futures RTH participants. Resets each session regardless of the chart's display timezone.
  • European / London Session VWAP: Configurable anchor at either 03:00 ET (London) or 02:00 ET (Frankfurt). Essential for tracking European institutional participation, particularly on DAX and EUR/USD.
  • Asian / Pacific Session VWAP: Configurable anchor at either 20:00 ET (Tokyo) or 18:00 ET (Sydney). Useful for establishing overnight reference levels and identifying the range that NY will either accept or reject at the open.
  • Color Suite: Every line has an independently configurable color input. The defaults (Silver, White, Blue, Lime, Red, Yellow) are chosen for visual hierarchy on dark themes, but each can be adjusted for light themes, personal preference, or multi-indicator setups.
  • Live VWAP Info Table: An optional on-chart table (top-right, togglable) displaying the current numeric value of all six active VWAP levels, color-coded to match their respective lines. Values display as for any anchor that has not yet reset in the current session. Populated only on the last bar to avoid unnecessary per-bar overhead.
  • 10 Alert Conditions: Cross-above and cross-below alerts for every VWAP line. Alerts fire on bar close (confirmed bar only) to prevent repainting. Each message includes {{ticker}} and {{close}} placeholders for use in webhook automations or notification routing.


Usage Guide

For intraday futures traders (ES, NQ, DAX): Enable the Daily VWAP Wave and NY VWAP as your primary references. Price reclaiming the NY VWAP after a morning flush is a high-probability mean-reversion setup. Price pushing beyond the Daily Wave High with sustained delta confirms initiative buying.

For swing and multi-day traders: The Rolling VWAP is your core tool. Set the window to 3-5 days and treat it as a dynamic fair value anchor. When price returns to the Rolling VWAP after extended deviation, evaluate whether volume supports continuation or reversal.

For session transition analysis: Enable all three session VWAPs. At the NY open, observe where price is relative to the Asian and London anchors. Acceptance above the London VWAP at NY open is structurally bullish. Rejection and failure below it signals continuation of overnight selling.

For deviation band usage: The ±1σ bands define the statistically normal range for the session. Extended moves to ±2σ with declining volume are classic mean-reversion setups. Moves to ±2σ with expanding volume signal initiative behavior and potential trend continuation.

免责声明

这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。