This overlay indicator combines classic Bollinger Band and Keltner Channel squeeze detection with linear regression momentum and pivot-based support and resistance levels.
1Copy the scriptPress Copy script above, or the copy button on the code below.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.
Source Code
130 lines of Pine Script v5 from Tradingview/squeeze-momentum.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
Squeeze Momentum plots a long-term moving average filter and tracks squeeze compression and release counts. When volatility squeezes and momentum aligns, it evaluates breakout conditions against dynamic pivot support and resistance lines directly on the price chart. Users can configure moving average parameters, squeeze band multipliers, pivot lookback periods, and minimum squeeze duration requirements.
Bollinger Bands and Keltner Channels squeeze detection
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
MA Length
int
200
ma_length
MA Source
source
close
ma_source
BB Length
int
20
length
BB MultFactor
float
2.0
mult
KC Length
int
20
lengthKC
KC MultFactor
float
1.5
multKC
Use TrueRange (KC)
bool
true
useTrueRange
S/R Left Bars
int
15
left_bars
S/R Right Bars
int
15
right_bars
Resistance
color
color.new(#2a9037, 0)
resistance_color
Support
color
color.new(#FF0000, 0)
support_color
Case 1A
bool
true
case1a
Show all 14 settings
Setting
Type
Default
Variable
Case 1B
bool
true
case1b
Squeeze Bars Required
int
6
squeeze_bars_required
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.
This overlay indicator combines SuperTrend, RSI, MACD, and an EMA to mark labeled tops and bottoms on the price chart. Optional filters hide repeating signals and keep only relevant exits, and a Krypton fear-and-greed filter can limit bottoms and tops to overs
This indicator plots envelope bands based on a moving average or exponential moving average of a chosen price source. It computes RSI with user-set length and source. Signals trigger on crossovers: buy when price crosses the lower envelope band while RSI falls
US Momentum Swing Screener is a daily chart overlay indicator for US equities and ETFs. It plots a composite score based on an EMA ribbon (9/21/50/200), RSI and StochRSI momentum, MACD confluence, volume surge detection, ADX trend strength, Bollinger Band posi
Composite Market Bias is a separate-pane indicator that scores bullish and bearish conditions from RSI, fast versus slow EMA, MACD histogram, Bollinger Band position, and price versus a 50-period EMA. It plots the resulting bias score with RSI, EMA trend, MACD
This overlay indicator plots a Supertrend from an ATR length and factor, four exponential moving averages, and a selectable VWAP or TWAP taken from a chosen timeframe on the price chart. It also shows MACD and stochastic with adjustable lengths, smoothing, ver
This indicator plots trade entry and exit signals on the price chart by combining Bollinger Bands with optional filter conditions. It calculates standard Bollinger Bands along with RSI, Aroon, and moving average filters. Reversal signals trigger when price bre