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.
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.