OPEN-SOURCE SCRIPT
PVW Oscillator Session — VWAP Percent Distance Indicator

PVW Oscillator Session is a professional-grade VWAP % distance indicator engineered for traders who want precise mean-reversion signals, momentum confirmation, and statistically grounded session analysis. It measures the percentage distance between price and VWAP, applies optional smoothing for noise reduction, and overlays dynamic standard-deviation bands that adapt continuously to real market behavior.
This indicator pairs exceptionally well with Heikin Ashi candles.
Heikin Ashi’s smoothing makes trends clearer, reduces chart noise, and enhances the readability of the oscillator’s momentum transitions. When combined, price flow becomes more structured while the PVW Oscillator shows the underlying statistical drift away from VWAP giving you a sharper, more reliable view of trend quality, exhaustion, and reversals.
At its core, the script uses ohlc4 VWAP to create a normalized oscillator that works on every asset and timeframe. The optional smoothing length refines the signal further, transforming raw VWAP distance into a stable, trend-revealing momentum curve. This is particularly effective during volatile intraday sessions where noise can distort real directional intent.
A real-time Welford’s algorithm engine computes the evolving mean and standard deviation (σ) of VWAP deviation across the entire chart. From this, the indicator plots dynamic ±1σ, ±2σ, ±3σ bands, each with filled zones for instant visual interpretation:
• ±1σ = VWAP equilibrium zone
Ideal for identifying balanced markets, compression, or accumulation/distribution phases.
• 1σ → 2σ = Momentum expansion zone
Perfect for spotting breakout confirmation, trend acceleration, or early reversal failure.
• 2σ → 3σ = Extreme deviation zone
Statistically stretched conditions where trend exhaustion or mean-reversion probability rises sharply.
Momentum-based coloring is applied to both the oscillator and (optionally) to price bars, showing rising/falling behavior above or below VWAP at a glance especially powerful when paired with Heikin Ashi candles.
Support the Developer
I’m a solo independent developer and build all my tools entirely on my own time.
If this indicator helped you, consider supporting future development:
⚡ Bitcoin Lightning (Strike — preferred):
stuartbill@strike.me
₿ Bitcoin (on-chain):
BC1Q3GVF3NSGVFN24SW2DCXX2RPEY47XA2ECGEW55Y
Ξ Ethereum:
0x7226361178d820418d648ffEec61E8e1dedCe39F
◎ Solana:
C9eYYQLgzsjPSW7Mo2BXPsXz5LZhuJZTb7XuZM3hQhH1
Thank you for supporting independent creators.
This indicator pairs exceptionally well with Heikin Ashi candles.
Heikin Ashi’s smoothing makes trends clearer, reduces chart noise, and enhances the readability of the oscillator’s momentum transitions. When combined, price flow becomes more structured while the PVW Oscillator shows the underlying statistical drift away from VWAP giving you a sharper, more reliable view of trend quality, exhaustion, and reversals.
At its core, the script uses ohlc4 VWAP to create a normalized oscillator that works on every asset and timeframe. The optional smoothing length refines the signal further, transforming raw VWAP distance into a stable, trend-revealing momentum curve. This is particularly effective during volatile intraday sessions where noise can distort real directional intent.
A real-time Welford’s algorithm engine computes the evolving mean and standard deviation (σ) of VWAP deviation across the entire chart. From this, the indicator plots dynamic ±1σ, ±2σ, ±3σ bands, each with filled zones for instant visual interpretation:
• ±1σ = VWAP equilibrium zone
Ideal for identifying balanced markets, compression, or accumulation/distribution phases.
• 1σ → 2σ = Momentum expansion zone
Perfect for spotting breakout confirmation, trend acceleration, or early reversal failure.
• 2σ → 3σ = Extreme deviation zone
Statistically stretched conditions where trend exhaustion or mean-reversion probability rises sharply.
Momentum-based coloring is applied to both the oscillator and (optionally) to price bars, showing rising/falling behavior above or below VWAP at a glance especially powerful when paired with Heikin Ashi candles.
Support the Developer
I’m a solo independent developer and build all my tools entirely on my own time.
If this indicator helped you, consider supporting future development:
⚡ Bitcoin Lightning (Strike — preferred):
stuartbill@strike.me
₿ Bitcoin (on-chain):
BC1Q3GVF3NSGVFN24SW2DCXX2RPEY47XA2ECGEW55Y
Ξ Ethereum:
0x7226361178d820418d648ffEec61E8e1dedCe39F
◎ Solana:
C9eYYQLgzsjPSW7Mo2BXPsXz5LZhuJZTb7XuZM3hQhH1
Thank you for supporting independent creators.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội Quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội Quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.