OPEN-SOURCE SCRIPT
BB 3SD Volume Segmentation Curves

This is a companion script to tradingview.com/script/7ZRkY96Y-Bollinger-Bands-with-3SD-Volume-Segmentation/. It's purpose is to enhance visualisation of volume and volume differential for those areas where price is most likely to react from and to showcase the differences in a succinct graphical way for quick comparisons.
Purpose
This script maps buy/sell volume, delta, and dominance into Bollinger Band zones to reveal where aggressive participation occurs relative to volatility structure. Instead of looking at raw volume or delta in isolation, it distributes flow across eight volatility buckets (from >3SD to <–3SD), allowing you to see whether buyers or sellers are dominating at extremes, mid‑zones, or mean‑reversion areas. The goal is to create a normalized, volatility‑aware flow curve that highlights exhaustion, absorption, and imbalance far more clearly than standard volume indicators.
How it works
The script builds a multi‑SD Bollinger framework (1, 2, 3 standard deviations) and reconstructs buy/sell volume to compute delta. For every bar, it assigns volume and delta to the BB zone where price closed, then sums these values over the chosen lookback window. Each zone is normalized by total volume, producing comparable curves regardless of volatility or timeframe. Depending on the selected mode (Dominance %, Delta, or Volume), the script plots eight zone‑curves plus an optional total curve, giving a full distribution of flow across volatility extremes.
Rationale
Volume and delta behave very differently depending on where price sits relative to volatility structure. Heavy selling below –2SD means something completely different from heavy selling at the mean, and dominance at +3SD often signals exhaustion rather than continuation. By decomposing flow into volatility buckets, the script exposes where real aggression is happening and whether it aligns with trend, absorption, or reversal conditions. This transforms volume/delta from a blunt tool into a structured, regime‑aware signal that integrates cleanly with multi‑TF mean‑reversion or breakout systems.
Purpose
This script maps buy/sell volume, delta, and dominance into Bollinger Band zones to reveal where aggressive participation occurs relative to volatility structure. Instead of looking at raw volume or delta in isolation, it distributes flow across eight volatility buckets (from >3SD to <–3SD), allowing you to see whether buyers or sellers are dominating at extremes, mid‑zones, or mean‑reversion areas. The goal is to create a normalized, volatility‑aware flow curve that highlights exhaustion, absorption, and imbalance far more clearly than standard volume indicators.
How it works
The script builds a multi‑SD Bollinger framework (1, 2, 3 standard deviations) and reconstructs buy/sell volume to compute delta. For every bar, it assigns volume and delta to the BB zone where price closed, then sums these values over the chosen lookback window. Each zone is normalized by total volume, producing comparable curves regardless of volatility or timeframe. Depending on the selected mode (Dominance %, Delta, or Volume), the script plots eight zone‑curves plus an optional total curve, giving a full distribution of flow across volatility extremes.
Rationale
Volume and delta behave very differently depending on where price sits relative to volatility structure. Heavy selling below –2SD means something completely different from heavy selling at the mean, and dominance at +3SD often signals exhaustion rather than continuation. By decomposing flow into volatility buckets, the script exposes where real aggression is happening and whether it aligns with trend, absorption, or reversal conditions. This transforms volume/delta from a blunt tool into a structured, regime‑aware signal that integrates cleanly with multi‑TF mean‑reversion or breakout systems.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.