The Squeeze indicator measures the relationship between two studies: Bollinger Bands® and Keltner's Channels. When the volatility increases, so does the distance between the bands, conversely, when the volatility declines, the distance also decreases.

The Squeeze indicator finds sections of the Bollinger Bands® study which fall inside the Keltner's Channels. When the market finishes a move, the indicator turns off, which corresponds to bands having pushed well outside the range of Keltner's Channels.

To produce Buy/Sell signals, the Squeeze indicator is plotted along with Momentum Oscillator. The Momentum Oscillator histogram is smoothed up with linear regression and other techniques. When the indicator is on (green) and the Momentum Oscillator is colored cyan, it is considered a Buy signal (this signal is supposed to be correct until two blue bars in a row). When the indicator is on and the Momentum Oscillator is red, it is considered a Sell signal (this signal is supposed to be correct until two yellow bars in a row). When the indicator is off (red), no trade is recommended.

Input Parameters

Parameter Description
price The price used in calculations.
length The number of bars used to calculate the three indicators: Momentum Oscillator, Bollinger Bands®, and Keltner's Channels.
nk The factor for calculating the shift of the Keltner's Channels.
nbb The number of deviations to plot the Bollinger Bands® study.
alert line The ratio between Bollinger Bands® and Keltner's Channels widths. When this ratio is reached, the indicator is on and alerts are generated.


Plot Description
Histogram The Momentum Oscillator histogram.
VolComp The Squeeze indicator.


The Boolean plot that shows where the squeeze alert condition is fulfilled. This plot is hidden by default.

Bollinger Bands® is a registered trademark of John Bollinger.


*For illustrative purposes only. Not a recommendation of a specific security or investment strategy.

You may also like
The Momentum% study measures the velocity of price changes for a fixed time interval. Momentum ...
The Slow Relative Strength Index is a version of the classic Relative Strength Index (RSI), ...
Notice: the RSIWilder study has been merged with RSI_EMA to form the new RSI. In the new version ...