1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
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
The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.
Overview
Adaptive Squeeze Momentum Pro compares an EMA-based volatility band with an ATR channel to detect squeezes and plots a smoothed momentum histogram colored by strength and direction. Regular and hidden divergence between price and momentum can be labeled with lines, with an optional early mode that does not wait for pivot confirmation, and an optional higher-timeframe trend filter. Divergences can also be duplicated on the price chart. Presets run from conservative to scalping.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Squeeze Length
int
21
lengthInput
Source
source
close
sourceInput
Volatility Band Mult
float
1.8
bbMultInput
ATR Channel Mult
float
1.6
atrMultInput
Momentum Length
int
20
momLengthInput
Preset
string
Default
presetInput
Detect Divergences
bool
true
useDivergenceInput
Divergence Lookback
int
3
divLookbackInput
Early Divergence (no right confirm)
bool
true
earlyDivInput
Use HTF Trend Filter
bool
false
useHtfFilterInput
Higher Timeframe
timeframe
60
htfInput
Show Divergence Labels
bool
true
showDivSignalsInput
Show all 27 settings
Setting
Type
Default
Variable
Show Divergence Lines
bool
true
showDivLinesInput
Show Divergences on Chart
bool
true
showOverlayInput
Show Squeeze Background
bool
false
showBgInput
Show Watermark
bool
true
showWatermarkInput
Label Size
string
Tiny
labelSizeInput
Theme
string
Auto
themeInput
Bull Strong
color
#00E676
bullStrongInput
Bull Weak
color
#00897B
bullWeakInput
Bear Strong
color
#FF5252
bearStrongInput
Bear Weak
color
#AD1457
bearWeakInput
Squeeze BG
color
#FF6D00
sqzBgColorInput
Div Bull Line
color
#00E676
divBullLineInput
Div Bear Line
color
#FF5252
divBearLineInput
Webhook JSON Format
bool
false
webhookInput
Momentum Smoothing
int
3
smoothInput
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 indicator plots a TTM Squeeze momentum oscillator and a MACD line in a separate pane. It builds the squeeze oscillator from a linear regression of price against a high-low and simple moving average midpoint, and colors the area by slope and sign. Circles
The Bubbles Indicator measures volatility squeezes and expansion bursts using Bollinger Bands combined with a sinusoid oscillator and RSI divergence. It processes price data through scaled Bollinger Bands to highlight volatility changes while confirming trend
The TTM Squeeze Divergence indicator plots a classic TTM Squeeze momentum oscillator in a separate pane alongside Bollinger Bands and Keltner Channels squeeze status dots on the zero line. It detects regular and hidden bullish and bearish divergences between p
This indicator plots the Relative Strength Index in a separate pane from smoothed up and down price changes. It draws the RSI line with horizontal bands at 70, 50 and 30, plus overbought and oversold gradient fills. Optional settings add a smoothing moving ave
This indicator plots a smoothed fear index in a separate pane. It measures how far the current low sits below the highest close over a lookback, scales that reading by an ATR percentile, and smooths it with a zero-lag EMA. A volatility regime raises or lowers
Adaptive RSI Divergence Engine calculates a Relative Strength Index with dynamic overbought and oversold bands that adapt to market volatility via an ATR percentile rank. It identifies both regular and hidden divergences by scanning confirmed pivot highs and l