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.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.