A mode setting switches between a divergence view with a normal RSI, a smoothed RSI with its own moving average, and a faster momentum RSI. Pivot-based divergence detection marks regular and hidden bullish and bearish divergences within a set lookback range, and each type can be toggled. Further settings cover an ADX threshold, momentum and Stochastic RSI lengths and a smoothed moving average.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
RSI Type
string
RSI Divergence
displayRSI
RSI Normal Length
int
14
lenrsinordiv
RSI Smoothed Length
int
40
lenrsismodiv
RSI Smoothed MA
int
40
lenrsissmoma
RSI Normal Length
int
5
lenrsimomdiv
Smooth RSI MA Length
int
34
rsimommalen
RSI Source
source
close
srcrsidiv
Pivot Lookback Right
int
5
lbR
Pivot Lookback Left
int
5
lbL
Max of Lookback Range
int
60
rangeUpper
Min of Lookback Range
int
5
rangeLower
Plot Bullish
bool
true
plotBull
Show all 24 settings
Setting
Type
Default
Variable
Plot Hidden Bullish
bool
true
plotHiddenBull
Plot Bearish
bool
true
plotBear
Plot Hidden Bearish
bool
true
plotHiddenBear
ADX Smoothing
int
14
lensig
DI Length
int
14
len
adx
int
15
adxthreshold
MOM Length
int
5
lenmom
K
int
5
smoothK
RSI Length
int
5
lengthRSI
Stochastic Length
int
34
lengthStoch
RSI Source
source
ohlc4
src
SMMA Length
int
25
smmaLen
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 calculates momentum setups based on the Relative Strength Index (RSI) and plots in a separate pane. It offers multiple scanning modes such as Continuous Break, Continuous Retracement, Flip Break, Flip Retracement, and both regular and hidden div
This indicator calculates the MACD oscillator from a configurable source with fast and slow lengths, then plots the histogram, MACD line, and signal line in a separate pane. It detects regular bullish divergences (price lower lows with oscillator higher lows),
This indicator calculates the Relative Strength Index (RSI) across four user-selected timeframes and plots the results in a separate pane. It identifies regular bullish and bearish divergences between price pivot points and the primary timeframe RSI value. Add
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
This indicator plots a standard Relative Strength Index (RSI) in a separate pane alongside customizable overbought and oversold threshold levels with shaded fills. It identifies pivot highs and lows on the oscillator to detect regular and hidden bullish and be
This indicator calculates a 14-period RSI from close and plots it in a separate pane with dotted overbought and dashed oversold lines at 70 and 30. It marks bullish divergence when a five-bar pivot low in price is lower than the price twenty bars earlier while