已更新

Multi-Period VWAP (7D / 30D / 90D)

614
This indicator plots three rolling Volume-Weighted Average Price (VWAP) lines calculated over trailing 7-day, 30-day, and 90-day windows, giving you a read on where price sits relative to volume-weighted "fair value" across short, medium, and long-term horizons.

Unlike a standard anchored VWAP that resets to zero at a fixed point (session, week, month), these lines are true rolling averages — they continuously reflect the most recent N days of trading and shift smoothly bar to bar, making them useful for spotting mean-reversion zones, confluence with order blocks/key levels, and gauging trend strength when the shorter VWAP is stacked above or below the longer ones.

Features:

- Adjustable lookback lengths for all three periods (defaults: 7 / 30 / 90 days)
- Toggle each VWAP on/off independently
- Customizable colors per line
- Choice of price source (HLC3, Close, or OHLC4)
- Optional "confirmed bars only" mode to prevent the lines from repainting as the current day's volume accumulates
- Live value labels on the last bar for each active VWAP

Built with crypto's 24/7 markets in mind, so the daily boundaries used for the rolling calculation aren't disrupted by traditional session gaps.
版本注释
Noticed that it wasn't a true rolling daily VWAP as price values changed per timeframe. This now calculates on the Daily timeframe then fixes it on other TFs.
版本注释
Changed VWAP to calculate on 30min timeframe instead of 1 day. Still within TV's 5000 candle limit but instead of a flat line for each day, now VWAP lines use the next 30min bar to recalculate looking back 7/30/90 days.

免责声明

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