OPEN-SOURCE SCRIPT
TTM Squeeze

Updated TTM Squeeze — Correct AND Logic
John Carter’s classic TTM Squeeze.
There is one on here already, but it is using an OR‑based condition. The proper logic is AND for a true volatility squeeze. Both the Keltner Channel lower band and upper band must sit fully inside the Bollinger Bands. Using AND logic ensures the squeeze only triggers when volatility is genuinely compressed, producing a more accurate and reliable signal than the default implementation.
John Carter’s classic TTM Squeeze.
There is one on here already, but it is using an OR‑based condition. The proper logic is AND for a true volatility squeeze. Both the Keltner Channel lower band and upper band must sit fully inside the Bollinger Bands. Using AND logic ensures the squeeze only triggers when volatility is genuinely compressed, producing a more accurate and reliable signal than the default implementation.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.