OPEN-SOURCE SCRIPT
Volume-Filtered Pivot Zones [ky_yule1010]

Volume-Filtered Pivot Zones
Detects swing pivots only when they occur on meaningful volume, then clusters them into weighted support/resistance zones using ATR-based proximity. The result is a clean, adaptive S/R map that evolves with the market rather than cluttering the chart with every minor swing.
Core Concept
Not all pivots are equal. A swing high printed on 2× relative volume carries far more institutional weight than one on dead tape. This indicator filters pivots through a configurable RVOL threshold (rolling SMA or time-of-day normalized), retains only the validated ones in a managed pool, and merges nearby pivots into zones using RVOL-weighted centroids. Zones closer to price activate; distant ones sit dormant until price revisits.
Why It Works
High-RVOL pivots act as gravity — price tends to revisit levels where significant volume transacted, making these zones natural magnets for mean-reversion and re-tests.
Pivot-anchored VWAP resets on each validated pivot, giving you a more responsive fair-value reference than session or fixed-anchor VWAP. It adapts to the market's actual turning points rather than arbitrary time boundaries.
Key Features
LTF Volume-Weighted mode — pivots are detected on wicks but the S/R line is drawn at the micro-VWAP from lower-timeframe bars, pinpointing where volume actually concentrated at the turning point.
Zone weight scoring — each zone carries a weight (touch count × average RVOL) so you can immediately see which levels have the deepest structural backing.
Volume gradient heatmap — visualizes volume density above and below active zones, highlighting friction (price slows) vs. voids (price rips).
Fair Value Gap detection — flags statistically large FVGs (P75+) as potential re-fill targets.
Comprehensive Gradient Score (CGS) — blends density asymmetry, ATR-normalized slope, acceleration, and rejection quality into a single directional bias reading.
Structure bias tracking — HH/HL vs. LH/LL sequence detection with staleness decay and price-position overrides.
Full data export — nearest S/R levels, distances, zone weights, RVOL, slope, acceleration, rejection quality, and CGS all plotted to the status line and data window.
Suggested Use
Use zone weight and the volume gradient to gauge conviction at each level — heavy zones with dense volume below support (or above resistance) tend to hold. Thin zones sitting in a volume void are breakout candidates. The CGS and density bias readings provide at-a-glance directional context without needing a separate oscillator.
Detects swing pivots only when they occur on meaningful volume, then clusters them into weighted support/resistance zones using ATR-based proximity. The result is a clean, adaptive S/R map that evolves with the market rather than cluttering the chart with every minor swing.
Core Concept
Not all pivots are equal. A swing high printed on 2× relative volume carries far more institutional weight than one on dead tape. This indicator filters pivots through a configurable RVOL threshold (rolling SMA or time-of-day normalized), retains only the validated ones in a managed pool, and merges nearby pivots into zones using RVOL-weighted centroids. Zones closer to price activate; distant ones sit dormant until price revisits.
Why It Works
High-RVOL pivots act as gravity — price tends to revisit levels where significant volume transacted, making these zones natural magnets for mean-reversion and re-tests.
Pivot-anchored VWAP resets on each validated pivot, giving you a more responsive fair-value reference than session or fixed-anchor VWAP. It adapts to the market's actual turning points rather than arbitrary time boundaries.
Key Features
LTF Volume-Weighted mode — pivots are detected on wicks but the S/R line is drawn at the micro-VWAP from lower-timeframe bars, pinpointing where volume actually concentrated at the turning point.
Zone weight scoring — each zone carries a weight (touch count × average RVOL) so you can immediately see which levels have the deepest structural backing.
Volume gradient heatmap — visualizes volume density above and below active zones, highlighting friction (price slows) vs. voids (price rips).
Fair Value Gap detection — flags statistically large FVGs (P75+) as potential re-fill targets.
Comprehensive Gradient Score (CGS) — blends density asymmetry, ATR-normalized slope, acceleration, and rejection quality into a single directional bias reading.
Structure bias tracking — HH/HL vs. LH/LL sequence detection with staleness decay and price-position overrides.
Full data export — nearest S/R levels, distances, zone weights, RVOL, slope, acceleration, rejection quality, and CGS all plotted to the status line and data window.
Suggested Use
Use zone weight and the volume gradient to gauge conviction at each level — heavy zones with dense volume below support (or above resistance) tend to hold. Thin zones sitting in a volume void are breakout candidates. The CGS and density bias readings provide at-a-glance directional context without needing a separate oscillator.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuyla, bu komut dosyasının mimarı, yatırımcıların işlevselliğini inceleyip doğrulayabilmesi için onu açık kaynaklı hale getirdi. Yazarı tebrik ederiz! Ücretsiz olarak kullanabilseniz de, kodu yeniden yayınlamanın Topluluk Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuyla, bu komut dosyasının mimarı, yatırımcıların işlevselliğini inceleyip doğrulayabilmesi için onu açık kaynaklı hale getirdi. Yazarı tebrik ederiz! Ücretsiz olarak kullanabilseniz de, kodu yeniden yayınlamanın Topluluk Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.