Uber TTM Squeeze [UTS]

A precision volatility and momentum indicator inspired by John Carter’s original TTM Squeeze – now enhanced for modern, rules-based traders seeking breakout opportunities.
🔵 What Is “The Squeeze”?
The “squeeze” occurs when both the upper and lower Bollinger Bands contract and sit entirely within the Keltner Channel. This signals a period of low volatility—price action becomes range-bound and moves sideways, with no clear momentum in either direction.
During these low-volatility periods, it’s best to avoid trading, as entering positions in a choppy market can lead to getting eaten up by whipsaws and false signals. The TTM Squeeze helps you identify these quiet, uncertain phases so you can steer clear of unnecessary risk and wait for stronger opportunities.
When the squeeze ends (as indicated by a color change in the bars and a momentum flip in the histogram), volatility returns and the market is primed for a potential breakout—this is when you want to pay attention.
✅ What Makes This Version Unique?
• Integrates Bollinger Bands and Keltner Channel, adapting to current volatility using ATR and standard deviation
• Squeeze condition (“energy building”) is detected when Bollinger Bands contract inside the Keltner Channel
• Separately settable Moving Averages for both, the Bollinger Bands and the Keltner Channel
• Extreme fine tuning potential due to various settings
🔁 Trend-Split, Directional Histogram
• Green bars for rising momentum
• Bars only appear colored at true momentum change – no repainting or extra noise
• Green and gray bars highlight squeeze on/off status in real-time
🎛️ Customizable Moving Averages
• Choose from 26 MAs (SMA, EMA, SMMA, LWMA ... ) for the Keltner Channel and Bollinger Bands
• All key lengths and multipliers are adjustable for advanced tuning
• Volatility width adapts to ATR period and your chosen smoothing
The 26 high quality Moving averages to choose:
• "SMA", Simple Moving Average, R. H. Hooker, 1901
• "EMA", Exponential Moving Average, P. N. Haurlan, early 1960s
• "MDMA", McGinley Dynamic MA, John R. McGinley, 1990s
• "DSEMA", Double Smoothed EMA, William Blau, year unknown
• "DEMA", Double EMA, Patrick G. Mulloy, 1994
• "TEMA", Triple EMA, Patrick G. Mulloy, 1994
• "WMA", Weighted MA, Author and year unknown
• "PWMA", Parabolic Weighted MA, Author and year unknown
• "VWMA", Volume Weighted MA, Author and year unknown
• "HULL", Hull MA, Alan Hull, 2005, year unknown
• "TMA", Triangular MA, Author and year unknown
• "B2P", Two Pole Ehlers Butterworth, John F. Ehlers, 2004
• "S2P", Two Pole Ehlers Smoother, John F. Ehlers, year unknown
• "S3P", Three Pole Ehlers Smoother, John F. Ehlers, year unknown
• "SINE", Sine Weighted MA, Author and year unknown
• "LINREG", Linear Regression Value (LSMA), Author and year unknown
• "ILINREG", Integral of Linear Regression Slope, Author and year unknown
• "NLMA", Non Lag MA, Author and year unknown
• "ZLMA", Zero Lag MA, Author and year unknown
• "KIJUN", Kijun-Sen Ichimoku, Goichi Hosoda, late 1930s
• "SSM", Super Smoother, John F. Ehlers, year unknown
• "ALMA", Arnaud Legoux MA, Arnaud Legoux, year unknown
• "KAMA", Kaufman Adaptive MA, Perry J. Kaufman, 1998
• "FRAMA", Fractal MA, John F. Ehlers, year unknown
• "RMA", Running MA, J. Welles Wilder Jr., 1978
• "JMA", Jurik Moving Average, Mark Jurik, year unknown
🎯 Clean Signals, Fast Readability
• Only one trend arrow appears per momentum flip, removing ambiguity
• Semi-transparent fills reinforce directional moves for easy chart reading
• Suits both manual and algorithmic traders who want rapid volatility detection
🕰️ History & Context
Originally developed by John Carter, the TTM Squeeze is known for timing volatility breakouts. This version maintains the original squeeze logic but modernizes it for dynamic, rules-based trading—helping you catch the big moves as volatility transitions from quiet to explosive.
🔔 Alerts
Create alerts via the “Add Alert” dialog and select the appropriate signal.
• “Trade Signal” on crossover of the Bands above the Channel
• “No-Trade Signal” on Bollinger Band squeeze
• Supports “Once Per Bar Close” to avoid repainting
📝 About
• Pine Script®: v6
• Created: 2025-07-09
⚠️ Disclaimer
For educational purposes only. Not financial advice. Trading involves risk; apply sound risk management and backtest thoroughly before live trading.
Script su invito
Solo gli utenti approvati dall'autore possono accedere a questo script. È necessario richiedere e ottenere l'autorizzazione per utilizzarlo. Tale autorizzazione viene solitamente concessa dopo il pagamento. Per ulteriori dettagli, seguire le istruzioni dell'autore riportate di seguito o contattare direttamente UberTradingSystems.
TradingView NON consiglia di pagare o utilizzare uno script a meno che non ci si fidi pienamente del suo autore e non si comprenda il suo funzionamento. Puoi anche trovare alternative gratuite e open-source nei nostri script della comunità.
Istruzioni dell'autore
Attenzione: prima di richiedere l'accesso, leggi la nostra guida per gli script su invito.
Declinazione di responsabilità
Script su invito
Solo gli utenti approvati dall'autore possono accedere a questo script. È necessario richiedere e ottenere l'autorizzazione per utilizzarlo. Tale autorizzazione viene solitamente concessa dopo il pagamento. Per ulteriori dettagli, seguire le istruzioni dell'autore riportate di seguito o contattare direttamente UberTradingSystems.
TradingView NON consiglia di pagare o utilizzare uno script a meno che non ci si fidi pienamente del suo autore e non si comprenda il suo funzionamento. Puoi anche trovare alternative gratuite e open-source nei nostri script della comunità.
Istruzioni dell'autore
Attenzione: prima di richiedere l'accesso, leggi la nostra guida per gli script su invito.