OPEN-SOURCE SCRIPT
Advanced Bollinger Bands Optimized - Precision Signals

This indicator creates an advanced Bollinger Bands system with integrated ATR bands and intelligent trading signals. It features:
**Core Components:**
- Standard Bollinger Bands (20-period SMA with 1.382 standard deviations)
- ATR-based outer bands expanding on the Bollinger Bands
- Dynamic bandwidth analysis using Z-Score to measure current volatility relative to historical levels
**Market State Detection:**
Identifies five market conditions based on bandwidth Z-Score:
- Extreme Squeeze (ultra-low volatility)
- Squeeze (low volatility)
- Normal (average volatility)
- Expansion (high volatility)
- Extreme Expansion (ultra-high volatility)
**Signal System:**
Generates 5 bullish and 5 bearish signals:
*Bullish Signals:*
1. Bottom Divergence - Price makes new lows while Z-Score is relatively high
2. Width Reversal - Bandwidth rebounds from extreme squeeze
3. Extreme Squeeze Reversal - Recovery from extreme volatility compression
4. Squeeze Breakout Up - Price breaks above upper band during squeeze
5. State Transition - Market transitions from squeeze to expansion
*Bearish Signals:*
1. Top Divergence - Price makes new highs while Z-Score is relatively low
2. Width Reversal - Bandwidth declines from extreme expansion
3. Extreme Expansion Reversal - Contraction from extreme volatility expansion
4. Squeeze Breakout Down - Price breaks below lower band during squeeze
5. State Transition - Market transitions from expansion to squeeze
**Features:**
- Real-time signal table showing active signals
- Adjustable sensitivity parameters for divergence, reversal, and breakout signals
- Signal cooldown system to prevent duplicate alerts
- Clean visual display with band fills and alert markers
- No additional external indicators required
This tool helps traders identify volatility changes, trend reversals, and breakout opportunities using only price data and bandwidth analysis.
**Core Components:**
- Standard Bollinger Bands (20-period SMA with 1.382 standard deviations)
- ATR-based outer bands expanding on the Bollinger Bands
- Dynamic bandwidth analysis using Z-Score to measure current volatility relative to historical levels
**Market State Detection:**
Identifies five market conditions based on bandwidth Z-Score:
- Extreme Squeeze (ultra-low volatility)
- Squeeze (low volatility)
- Normal (average volatility)
- Expansion (high volatility)
- Extreme Expansion (ultra-high volatility)
**Signal System:**
Generates 5 bullish and 5 bearish signals:
*Bullish Signals:*
1. Bottom Divergence - Price makes new lows while Z-Score is relatively high
2. Width Reversal - Bandwidth rebounds from extreme squeeze
3. Extreme Squeeze Reversal - Recovery from extreme volatility compression
4. Squeeze Breakout Up - Price breaks above upper band during squeeze
5. State Transition - Market transitions from squeeze to expansion
*Bearish Signals:*
1. Top Divergence - Price makes new highs while Z-Score is relatively low
2. Width Reversal - Bandwidth declines from extreme expansion
3. Extreme Expansion Reversal - Contraction from extreme volatility expansion
4. Squeeze Breakout Down - Price breaks below lower band during squeeze
5. State Transition - Market transitions from expansion to squeeze
**Features:**
- Real-time signal table showing active signals
- Adjustable sensitivity parameters for divergence, reversal, and breakout signals
- Signal cooldown system to prevent duplicate alerts
- Clean visual display with band fills and alert markers
- No additional external indicators required
This tool helps traders identify volatility changes, trend reversals, and breakout opportunities using only price data and bandwidth analysis.
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
この情報および投稿は、TradingViewが提供または推奨する金融、投資、トレード、その他のアドバイスや推奨を意図するものではなく、それらを構成するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
この情報および投稿は、TradingViewが提供または推奨する金融、投資、トレード、その他のアドバイスや推奨を意図するものではなく、それらを構成するものでもありません。詳細は利用規約をご覧ください。