This indicator calculates regular and hidden divergences across multiple momentum and volume oscillators, including MACD, RSI, Stochastic, CCI, Momentum, OBV, VW-MACD, CMF, and MFI, as well as an optional external input.
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
Combined Indicators Fixed scans for pivot highs and lows using configurable lookback periods and compares price swings against oscillator values. Divergence lines, indicator count labels, and optional 50 and 200 simple moving averages are plotted directly on the price chart. Users can customize pivot parameters, filter divergence types, and set minimum divergence count thresholds.
Multi-oscillator divergence detection across up to ten indicators
Regular and hidden divergence identification
Customizable pivot detection lookback and source
Optional 50 and 200 simple moving average overlays
Configurable on-chart divergence lines and label formatting
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Pivot Period
int
5
prd
Source for Pivot Points
string
Close
source
Divergence Type
string
Regular
searchdiv
Show Indicator Names
string
Full
showindis
Minimum Number of Divergence
int
1
showlimit
Maximum Pivot Points to Check
int
10
maxpp
Maximum Bars to Check
int
100
maxbars
Show Divergence Number
bool
true
shownum
Show Only Last Divergence
bool
false
showlast
Don't Wait for Confirmation
bool
true
dontconfirm
Show Divergence Lines
bool
true
showlines
Show Pivot Points
bool
false
showpivot
Show all 40 settings
Setting
Type
Default
Variable
MACD
bool
true
calcmacd
MACD Histogram
bool
true
calcmacda
RSI
bool
true
calcrsi
Stochastic
bool
true
calcstoc
CCI
bool
true
calccci
Momentum
bool
true
calcmom
OBV
bool
true
calcobv
VWmacd
bool
true
calcvwmacd
Chaikin Money Flow
bool
true
calccmf
Money Flow Index
bool
true
calcmfi
Check External Indicator
bool
false
calcext
External Indicator
source
close
externalindi
Positive Regular
color
color.yellow
pos_reg_div_col
Negative Regular
color
color.navy
neg_reg_div_col
Positive Hidden
color
color.lime
pos_hid_div_col
Negative Hidden
color
color.red
neg_hid_div_col
Pos Text Color
color
color.black
pos_div_text_col
Neg Text Color
color
color.white
neg_div_text_col
Regular Line Style
string
Solid
reg_div_l_style_
Hidden Line Style
string
Dashed
hid_div_l_style_
Regular Width
int
2
reg_div_l_width
Hidden Width
int
1
hid_div_l_width
Show MAs 50 & 200
bool
false
showmas
cma1col
color
color.lime
cma1col
cma2col
color
color.red
cma2col
ATR Period ST
int
10
stPeriods
ATR Multiplier ST
float
3.0
stMultiplier
Change ATR Calc?
bool
true
stChangeATR
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.
Oscillator Workbench — Chart plots a configurable blend of two built-in oscillators and an optional external oscillator on the price chart. It draws a weighted oscillator line and a reference moving average, coloring both by successive up or down states. Users
This indicator combines the Relative Strength Index (RSI) and Money Flow Index (MFI) into a single hybrid oscillator in a separate pane. Users can adjust the relative weighting of price momentum and volume flow to create a custom hybrid value bounded between 0
This overlay indicator marks call and put setups from EMAs, RSI, MACD, and a SPY volume ratio. A call needs higher highs, RSI above its minimum, rising MACD, above-average proxy volume, and a rising trend EMA; a put reverses those tests. Early markers use an E
LiqSpikeBounceLong Feb2026 is an indicator designed to identify long bounce entries following high-volume liquidation cascades in bearish market contexts. It checks if price is below an exponential moving average, then detects large single-bar drops exceeding
This indicator detects regular and hidden divergences across multiple technical factors plotted directly on the price chart. It evaluates price highs and lows against peaks and troughs identified by a five-bar fractal mechanism on RSI, RSI Stochastic, MACD, re
This indicator marks RSI divergences only when price trades beyond daily VWAP standard-deviation bands. It compares recent RSI extremes with price highs and lows over a lookback window, and it treats a divergence as valid only while RSI stays beyond overbought