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.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.