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, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.