OPEN-SOURCE SCRIPT

Squeeze Momentum Setup Assistant

1 007
snapshot

BB/KC squeeze detection with MA trend signals, RSI filtering, and ATR-based stop/target levels.

Squeeze Momentum Setup Assistant is a hybrid volatility and trend-confirmation tool designed to help traders identify potential breakout setups, trend shifts, and ATR-based risk levels directly on the chart.

The indicator combines Bollinger Bands and Keltner Channels to detect squeeze conditions. A squeeze occurs when the Bollinger Bands contract inside the Keltner Channels, suggesting a period of reduced volatility and possible energy buildup.

When the squeeze releases, the script uses a simple momentum calculation to classify the potential breakout direction:

- SqueezeUp appears when volatility releases with positive momentum.
- SqueezeDown appears when volatility releases with negative momentum.

In addition to squeeze detection, the indicator includes a moving average crossover system with RSI filtering:

- A Call signal appears when the short moving average crosses above the long moving average while RSI remains below the overbought zone.
- A Put signal appears when the short moving average crosses below the long moving average while RSI remains above the oversold zone.

For each Call or Put setup, the indicator automatically calculates ATR-based stop and target levels. This helps traders visualize potential risk and reward zones without manually measuring volatility.

Key features:

- Bollinger Band and Keltner Channel squeeze detection
- Squeeze release direction labels
- Moving average crossover signals
- RSI-based signal filtering
- ATR-based stop loss and target projections
- Visual trend and volatility structure on the chart

This tool is designed for traders who want to combine volatility compression, momentum release, trend confirmation, and risk planning in one visual framework.

Best used with market structure, VWAP, support and resistance, volume confirmation, and higher timeframe trend context.

Important:
This indicator does not predict future price movement and should not be used as a standalone trading system. Squeeze releases can fail, moving average crossovers can lag, and ATR levels are only volatility-based reference zones. Always use proper risk management and additional confirmation.

A hybrid squeeze and trend setup assistant that combines BB/KC volatility compression, momentum release direction, MA crossover signals, RSI filtering, and ATR-based stop/target levels.
How it works:

The indicator first compares Bollinger Bands against Keltner Channels to detect volatility compression. When the Bollinger Bands move inside the Keltner Channels, the market is considered to be in a squeeze.

When the squeeze releases, momentum is used to estimate the possible breakout direction.

Separately, the script evaluates short and long moving average crossovers with RSI filtering to identify possible Call and Put setups.

When a Call or Put condition appears, the indicator calculates projected stop and target levels using ATR, allowing traders to quickly visualize volatility-adjusted risk zones.

Inputs:

BB Length:
Controls the Bollinger Band lookback period.

BB Multiplier:
Controls the width of the Bollinger Bands.

KC ATR Length:
Controls the ATR length used for the Keltner Channel calculation.

KC Multiplier:
Controls the width of the Keltner Channels.

Momentum Length:
Controls the lookback period used to estimate squeeze release direction.

Short MA Length:
Controls the fast moving average used for crossover signals.

Long MA Length:
Controls the slow moving average used for crossover signals.

RSI Length:
Controls the RSI filter used to avoid extreme overbought or oversold entries.

ATR Length for SL/Target:
Controls the ATR calculation used for stop and target projections.

Target Multiplier:
Defines how far the projected target is placed from the signal price using ATR.

Stop Loss Multiplier:
Defines how far the projected stop is placed from the signal price using ATR.


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.