OPEN-SOURCE SCRIPT
KC-BB Squeeze Trend Trader

█ OVERVIEW
The KC-BB Squeeze Trend Trader identifies volatility compression and expansion by detecting when Bollinger Bands contract inside Keltner Channels and then release with confirmed momentum. It highlights potential trend-starting breakouts by combining squeeze detection, directional momentum, trend bias, and optional volume filters.
During periods of low volatility, price consolidates and energy builds. When volatility expands again, strong directional moves often follow. This tool helps traders spot those opportunities early with clear visual cues and optional performance tracking.
█ KEY FEATURES
█ HOW IT WORKS
█ HOW TO USE
█ TIMEFRAME GUIDANCE
█ SETTINGS SUMMARY
█ ALERTS
█ NOTES
█ CREDITS
Inspired by the Bollinger Band and Keltner Channel squeeze concept popularized by John Carter’s TTM Squeeze, with added enhancements for squeeze strength, filtering, and real-time performance metrics.
The KC-BB Squeeze Trend Trader identifies volatility compression and expansion by detecting when Bollinger Bands contract inside Keltner Channels and then release with confirmed momentum. It highlights potential trend-starting breakouts by combining squeeze detection, directional momentum, trend bias, and optional volume filters.
During periods of low volatility, price consolidates and energy builds. When volatility expands again, strong directional moves often follow. This tool helps traders spot those opportunities early with clear visual cues and optional performance tracking.
█ KEY FEATURES
- Squeeze detection using Bollinger Bands inside Keltner Channels
- Automatic identification of volatility expansion after the squeeze ends
- Optional filters for momentum, trend direction, volume, and signal cooldown
- Dynamic color fills for squeeze, bullish expansion, bearish expansion, and neutral states
- Dashboard showing squeeze duration, tightness, momentum, trend, and volume context
- Optional win-rate analytics using ATR-based target and stop evaluation
- Multi-timeframe confirmation for higher-quality breakouts
█ HOW IT WORKS
- A squeeze occurs when both Bollinger Bands sit inside the Keltner Channels.
- A breakout begins when the Bollinger Bands expand outside the KCs.
- Long signals appear when squeeze release aligns with bullish momentum and trend strength.
- Short signals appear when bearish momentum and trend conditions agree.
- Volume and cooldown filters help reduce noise and avoid low-quality entries.
█ HOW TO USE
- Wait for a squeeze period (yellow fill).
- Monitor duration and tightness: longer/tighter squeezes often lead to stronger moves.
- When a long or short signal appears, use the plotted ATR-based target and stop as reference levels.
- Watch for contraction or exit hints when momentum fades or volatility narrows again.
- Higher timeframes generally provide cleaner and more reliable signals.
█ TIMEFRAME GUIDANCE
- Crypto: 4H or 1D; consider increasing KC multiplier for high volatility.
- Forex: 1H–4H; longer squeeze duration can improve selectivity.
- Stocks: 1D–1W; consider slightly higher BB multiplier on slow-moving markets.
█ SETTINGS SUMMARY
- Adjustable Bollinger Band and Keltner Channel lengths and multipliers
- Three momentum modes: Linear Regression, Price–SMA, or ROC
- Trend and volume filters (optional)
- Configurable minimum squeeze duration and signal cooldown
- ATR-based target and stop multipliers
- Optional historically tight squeeze filter (percentile-based)
█ ALERTS
- Squeeze Detected
- Squeeze Released
- Long Entry
- Short Entry
- Exit Hint
- Historically Tight Squeeze
█ NOTES
- ATR-based win-rate calculations provide simplified performance estimates.
- Past behavior does not guarantee future movement.
- Use position sizing and risk management appropriate for the instrument and timeframe.
█ CREDITS
Inspired by the Bollinger Band and Keltner Channel squeeze concept popularized by John Carter’s TTM Squeeze, with added enhancements for squeeze strength, filtering, and real-time performance metrics.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
Eric Thies
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
Eric Thies
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.