OPEN-SOURCE SCRIPT
Cập nhật Bollinger Bands x3 with Fill + HMA + Dynamic Width Colors

📄 Description for TradingView Publication:
This is an enhanced and flexible version of the classic Bollinger Bands indicator, designed for traders who want deeper insight into market volatility and price structure.
🔹 Key Features:
✅ Triple Bollinger Bands
✅ Dynamic Band Width Coloring
✅ Dynamic Fill Coloring
✅ Multiple Moving Average Options
Choose from:
✅ Customization Options
💡 Use Case Tips:
🧰 Recommended For:
This is an enhanced and flexible version of the classic Bollinger Bands indicator, designed for traders who want deeper insight into market volatility and price structure.
🔹 Key Features:
✅ Triple Bollinger Bands
- Displays 3 standard deviation bands: ±1σ, ±2σ, and ±3σ
- Customize each deviation level independently
✅ Dynamic Band Width Coloring
- Band lines change color when the distance between upper and lower bands narrows
- Helps identify volatility contractions and potential squeeze setups
✅ Dynamic Fill Coloring
- Fill between bands also changes color when the bands narrow
- Visually highlights transitions from high to low volatility conditions
✅ Multiple Moving Average Options
Choose from:
- Simple Moving Average (SMA)
- Exponential Moving Average (EMA)
- Smoothed Moving Average (SMMA / RMA)
- Weighted Moving Average (WMA)
- Volume-Weighted Moving Average (VWMA)
- Hull Moving Average (HMA) for a smoother, more responsive central tendency
✅ Customization Options
- Show/hide each band individually
- Adjust standard deviation multipliers
- Toggle fills between bands
- Customize fill colors for normal and narrowing conditions
- Offset option to shift all plots forward or backward
💡 Use Case Tips:
- When all bands begin narrowing, it could signal an upcoming volatility expansion or breakout.
- Use the ±3σ bands to gauge extreme price behavior, and ±1σ for short-term mean reversion.
- Combine with price action, momentum, or volume for breakout confirmation.
🧰 Recommended For:
- Volatility traders
- Mean reversion strategies
- Breakout traders
- Trend confirmation and structure analysis
Phát hành các Ghi chú
📄 Description for TradingView Publication:This is an enhanced and flexible version of the classic Bollinger Bands indicator, designed for traders who want deeper insight into market volatility and price structure.
🔹 Key Features:
✅ Triple Bollinger Bands
- Displays 3 standard deviation bands: ±1σ, ±2σ, and ±3σ
- Customize each deviation level independently
✅ Dynamic Band Width Coloring
- Band lines change color when the distance between upper and lower bands narrows
- Helps identify volatility contractions and potential squeeze setups
✅ Dynamic Fill Coloring
- Fill between bands also changes color when the bands narrow
- Visually highlights transitions from high to low volatility conditions
✅ Multiple Moving Average Options
Choose from:
- Simple Moving Average (SMA)
- Exponential Moving Average (EMA)
- Smoothed Moving Average (SMMA / RMA)
- Weighted Moving Average (WMA)
- Volume-Weighted Moving Average (VWMA)
- Hull Moving Average (HMA) for a smoother, more responsive central tendency
✅ Customization Options
- Show/hide each band individually
- Adjust standard deviation multipliers
- Toggle fills between bands
- Customize fill colors for normal and narrowing conditions
- Offset option to shift all plots forward or backward
💡 Use Case Tips:
- When all bands begin narrowing, it could signal an upcoming volatility expansion or breakout.
- Use the ±3σ bands to gauge extreme price behavior, and ±1σ for short-term mean reversion.
- Combine with price action, momentum, or volume for breakout confirmation.
🧰 Recommended For:
- Volatility traders
- Mean reversion strategies
- Breakout traders
- Trend confirmation and structure analysis
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.