OPEN-SOURCE SCRIPT
Multi Market VWAP System

Multi‑VWAP [MW] — Adaptive, Multi‑Session Anchored VWAP Suite
Multi‑VWAP [MW] is a comprehensive, multi‑session Volume‑Weighted Average Price engine designed for traders who rely on precise, session‑aware VWAP levels across equities, futures, and crypto.
Built for Pine Script v6, it handles complex market structures, custom anchor dates, and non‑standard trading sessions with robust error‑tolerant logic.
What This Indicator Does
This tool calculates and displays a full suite of anchored VWAPs, including:
Standard Period VWAPs
- Daily
- Weekly
- Monthly
- Yearly
To‑Date VWAPs
- Week‑to‑Date (WTD)
- Month‑to‑Date (MTD)
- Year‑to‑Date (YTD)
Custom Anchored VWAP
- Anchor to any user‑selected date
- Automatically recalculates from the first bar of that date
- Works across all markets, including 24/7 crypto
Multi‑Day Rolling VWAPs
Optional rolling VWAPs for:
- 2‑day
- 3‑day
- 4‑day
- 5‑day
- 10‑day
- 20‑day
- 50‑day
Each VWAP can be toggled individually for a clean, customizable chart.
Key Features
✔ Market‑Adaptive Session Handling
Automatically adjusts for:
- Regular equities sessions
- Futures extended hours
- 24/7 crypto markets
- Holidays (via MarketHolidays library)
✔ Clean, Efficient, Pine v6 Architecture
- No deprecated functions
- No array overflows
- No undefined variables
- Defensive programming for unsupported markets
- Optimized for performance on lower‑timeframe charts
✔ Visual Clarity & Control
- Independent color and visibility toggles
- Optional labels showing VWAP values
- Smart timestamp anchoring for all VWAP types
- Minimal chart clutter with maximum information density
Who This Indicator Is For
This tool is ideal for traders who rely on VWAP structure for:
- Intraday mean‑reversion
- Swing anchoring
- Multi‑session bias
- Institutional level mapping
- Crypto VWAP structure where no “session” exists
If you use VWAP as a core part of your workflow, this script gives you the flexibility and precision needed for modern multi‑market trading.
Notes
- This script does not repaint.
- All VWAPs are calculated using standard cumulative volume‑weighted methodology.
- Custom date VWAP begins at the first bar of the selected date on the chart’s timeframe.
Multi‑VWAP [MW] is a comprehensive, multi‑session Volume‑Weighted Average Price engine designed for traders who rely on precise, session‑aware VWAP levels across equities, futures, and crypto.
Built for Pine Script v6, it handles complex market structures, custom anchor dates, and non‑standard trading sessions with robust error‑tolerant logic.
What This Indicator Does
This tool calculates and displays a full suite of anchored VWAPs, including:
Standard Period VWAPs
- Daily
- Weekly
- Monthly
- Yearly
To‑Date VWAPs
- Week‑to‑Date (WTD)
- Month‑to‑Date (MTD)
- Year‑to‑Date (YTD)
Custom Anchored VWAP
- Anchor to any user‑selected date
- Automatically recalculates from the first bar of that date
- Works across all markets, including 24/7 crypto
Multi‑Day Rolling VWAPs
Optional rolling VWAPs for:
- 2‑day
- 3‑day
- 4‑day
- 5‑day
- 10‑day
- 20‑day
- 50‑day
Each VWAP can be toggled individually for a clean, customizable chart.
Key Features
✔ Market‑Adaptive Session Handling
Automatically adjusts for:
- Regular equities sessions
- Futures extended hours
- 24/7 crypto markets
- Holidays (via MarketHolidays library)
✔ Clean, Efficient, Pine v6 Architecture
- No deprecated functions
- No array overflows
- No undefined variables
- Defensive programming for unsupported markets
- Optimized for performance on lower‑timeframe charts
✔ Visual Clarity & Control
- Independent color and visibility toggles
- Optional labels showing VWAP values
- Smart timestamp anchoring for all VWAP types
- Minimal chart clutter with maximum information density
Who This Indicator Is For
This tool is ideal for traders who rely on VWAP structure for:
- Intraday mean‑reversion
- Swing anchoring
- Multi‑session bias
- Institutional level mapping
- Crypto VWAP structure where no “session” exists
If you use VWAP as a core part of your workflow, this script gives you the flexibility and precision needed for modern multi‑market trading.
Notes
- This script does not repaint.
- All VWAPs are calculated using standard cumulative volume‑weighted methodology.
- Custom date VWAP begins at the first bar of the selected date on the chart’s timeframe.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que la republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como asesoramiento o recomendaciones financieras, de inversión, de trading o de otro tipo proporcionadas o respaldadas por TradingView. Más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que la republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como asesoramiento o recomendaciones financieras, de inversión, de trading o de otro tipo proporcionadas o respaldadas por TradingView. Más información en Condiciones de uso.