OPEN-SOURCE SCRIPT
SW Hybrid Bollinger Bands

## Overview
Welcome to the **SW Hybrid Bollinger Bands**, a modern take on the classic Bollinger Bands volatility indicator.
Unlike traditional Bollinger Bands that strictly use the closing price and a single Simple Moving Average (SMA), this script dynamically calculates standard deviation bands based on both the **High** and **Low** price points of candles. Furthermore, it incorporates both **EMA (Exponential Moving Average)** and **WMA (Weighted Moving Average)** to provide a smoother, more responsive volatility channel.
---
## How It Works
The indicator splits the volatility channels into two distinct zones:
* **Green Channels (High-Based):** Calculated using the candle's *High* price, integrated with EMA and WMA. These act as ultimate dynamic resistance zones and momentum gauges for upside moves.
* **Purple Channels (Low-Based):** Calculated using the candle's *Low* price, integrated with EMA and WMA. These serve as dynamic support zones and exhaustion areas during downward trends.
* **Center Line (White):** A standard 20-period SMA to keep you anchored to the baseline trend.
By blending EMA (which reacts faster to recent price action) and WMA (which emphasizes linear weight), the fills between these lines create unique **"Liquidity/Volatility Belts"** rather than single strict lines.
---
## How to Trade with It
1. **Trend Riding:** During strong uptrends, the price tends to float between the 20 SMA and the upper Green Channels. In strong downtrends, it stays between the 20 SMA and the lower Purple Channels.
2. **Reversals & Exhaustion:** When the price penetrates deep into the outer green or purple filled zones, it often signals an overextended market, hinting at a potential mean-reversion back to the white 20 SMA.
3. **Volatility Squeezes:** When the green and purple bands compress tightly towards each other, expect a massive explosive breakout soon.
---
## Release Notes
* **Open Source:** Free for the community! Feel free to favorite, share, and modify.
* **Version:** Pine Script v6 optimized.
* **Clean Visuals:** Red color elements updated to sleek **Purple** for better chart readability and modern aesthetic.
*Disclaimer: This script is for educational and informational purposes only. Past performance does not guarantee future results.*
Welcome to the **SW Hybrid Bollinger Bands**, a modern take on the classic Bollinger Bands volatility indicator.
Unlike traditional Bollinger Bands that strictly use the closing price and a single Simple Moving Average (SMA), this script dynamically calculates standard deviation bands based on both the **High** and **Low** price points of candles. Furthermore, it incorporates both **EMA (Exponential Moving Average)** and **WMA (Weighted Moving Average)** to provide a smoother, more responsive volatility channel.
---
## How It Works
The indicator splits the volatility channels into two distinct zones:
* **Green Channels (High-Based):** Calculated using the candle's *High* price, integrated with EMA and WMA. These act as ultimate dynamic resistance zones and momentum gauges for upside moves.
* **Purple Channels (Low-Based):** Calculated using the candle's *Low* price, integrated with EMA and WMA. These serve as dynamic support zones and exhaustion areas during downward trends.
* **Center Line (White):** A standard 20-period SMA to keep you anchored to the baseline trend.
By blending EMA (which reacts faster to recent price action) and WMA (which emphasizes linear weight), the fills between these lines create unique **"Liquidity/Volatility Belts"** rather than single strict lines.
---
## How to Trade with It
1. **Trend Riding:** During strong uptrends, the price tends to float between the 20 SMA and the upper Green Channels. In strong downtrends, it stays between the 20 SMA and the lower Purple Channels.
2. **Reversals & Exhaustion:** When the price penetrates deep into the outer green or purple filled zones, it often signals an overextended market, hinting at a potential mean-reversion back to the white 20 SMA.
3. **Volatility Squeezes:** When the green and purple bands compress tightly towards each other, expect a massive explosive breakout soon.
---
## Release Notes
* **Open Source:** Free for the community! Feel free to favorite, share, and modify.
* **Version:** Pine Script v6 optimized.
* **Clean Visuals:** Red color elements updated to sleek **Purple** for better chart readability and modern aesthetic.
*Disclaimer: This script is for educational and informational purposes only. Past performance does not guarantee future results.*
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.