OPEN-SOURCE SCRIPT
BB + Keltner Squeeze (con SL)

BB + Keltner Squeeze with Dynamic SL
This indicator combines Bollinger Bands (2σ and optional 3σ) with Keltner Channels to detect phases of volatility compression (squeeze) and their release (expansion).
Squeeze ON (orange dot): Bollinger Bands are inside the Keltner Channel → low volatility / market compression.
Release (green triangle): Bollinger Bands break outside the Keltner Channel → volatility expansion.
Orange background: visually highlights squeeze phases.
Dynamic Stop Loss options:
KC Mode: stop at the opposite Keltner band (wider, good for trend following).
ATRlike Mode: stop based on a multiple of the range (tighter, good for scalping or short swings).
Intended use:
Identify moments when the market is “building energy” and trade breakouts after a release.
Adjust stop losses dynamically according to volatility.
Note: This is not a standalone trading system. It works best when combined with trend confirmation tools (EMA, MACD, market structure, etc.).
This indicator combines Bollinger Bands (2σ and optional 3σ) with Keltner Channels to detect phases of volatility compression (squeeze) and their release (expansion).
Squeeze ON (orange dot): Bollinger Bands are inside the Keltner Channel → low volatility / market compression.
Release (green triangle): Bollinger Bands break outside the Keltner Channel → volatility expansion.
Orange background: visually highlights squeeze phases.
Dynamic Stop Loss options:
KC Mode: stop at the opposite Keltner band (wider, good for trend following).
ATRlike Mode: stop based on a multiple of the range (tighter, good for scalping or short swings).
Intended use:
Identify moments when the market is “building energy” and trade breakouts after a release.
Adjust stop losses dynamically according to volatility.
Note: This is not a standalone trading system. It works best when combined with trend confirmation tools (EMA, MACD, market structure, etc.).
Script de código aberto
No verdadeiro espirito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam entendê-lo e verificá-lo. Parabéns ao autor Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações e regida pelas Regras da Casa.
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.
Script de código aberto
No verdadeiro espirito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam entendê-lo e verificá-lo. Parabéns ao autor Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações e regida pelas Regras da Casa.
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.