OPEN-SOURCE SCRIPT
Buy/Sell Volume Pressure

The Buy/Sell Volume Pressure indicator is a sophisticated volume-analysis tool designed to reveal the hidden tug-of-war between buyers and sellers. Unlike standard volume bars that only show total activity, this indicator decomposes every candle into its constituent buying and selling components based on price action within the bar (wick-to-body ratio). It provides a smoothed, oscillator-style histogram that identifies trend strength, exhaustion points, and high-probability reversals.
2. Key Features & Calculations
Wick-Based Pressure Estimation: Uses a precise calculation to determine volume distribution. It analyzes where the close sits relative to the high and low. A close near the high attributes more volume to "Buying Pressure," while a close near the low attributes it to "Selling Pressure."
Non-Repainting Multi-Timeframe (HTF) Support: Includes a built-in HTF toggle that allows you to view volume pressure from higher timeframes (e.g., Daily pressure on a 15m chart). Uses the industry-standard [1] offset to ensure data is confirmed and never repaints.
Volume Filter for Accuracy: An optional filter that only validates signals when volume is above its 20-period moving average, ensuring you aren't misled by "low-liquidity noise."
Extreme Zone Detection: Dynamically calculates overbought and oversold "Extreme Zones" based on recent historical ranges, highlighting areas where the trend may be overextended.
WMA Smoothing: Incorporates a Weighted Moving Average (WMA) to provide a clearer trend direction and reduce histogram volatility.
Price-Confirmed Divergences: Automatically detects Bullish and Bearish divergences between price and volume pressure, filtered by swing-point confirmation for higher reliability.
3. How to Use for Trading
Signal Interpretation
Teal Histogram Rising Buyers in control — trend confirmation
Maroon Histogram Falling Sellers dominating — trend confirmation
Zero-Line Cross (→ Positive) Momentum shift — potential long entry
Bullish Divergence (🟢) Price lower low + Pressure higher low = Selling exhaustion
Bearish Divergence (🔴) Price higher high + Pressure lower high = Buying exhaustion
Extreme Zone Highlight Market overextended — watch for reversal patterns
4. Input Parameters
Core Settings
Lookback Period: SMA length to smooth the raw buy/sell difference
Divergence Swing Lookback: Sensitivity of pivot points for divergence detection
Higher Timeframe: Overlay higher-level volume trends (1H, 4H, D, etc.)
Accuracy Improvements
Volume Filter: Only validate signals above average volume
Avg Volume Length: Period for calculating average volume
Visual & Smoothing
WMA Smoothing: Toggle the yellow Weighted Moving Average line
Threshold %: Adjusts how "extreme" the zones must be (top/bottom % of recent range)
5. Alerts Available
Zero-Line Crosses — Momentum shift notifications
Divergence Detections — Bullish/Bearish divergence alerts
Extreme Zone Entry/Exit — When pressure enters/leaves overbought/oversold zones
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.