Indicator · Pine Script v5 · On the chart

Strength of Divergence Across Multiple Indicators

by g-moe

This indicator identifies regular and hidden bullish and bearish divergences between price action and multiple technical indicators, including RSI, OBV, MACD, Stochastic, and CCI.

View on GitHub

GitHub stars3on the repository
Pine versionv5runs as is
Lines of code386
Settings40inputs
LicenceNone stated
Last update5 months ago27 May 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 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

Strength of Divergence Across Multiple Indicators evaluates price and indicator pivots over a configurable lookback window, calculating a composite strength score based on user-defined indicator weights and price versus indicator magnitude. Confirmed divergences and trendlines are drawn directly on the main price chart. Key settings allow customization of pivot detection lengths, lookback limits, trendline break filtering, and individual indicator weights. Signal labels appear retroactively upon pivot confirmation.

Details

Published by

g-moe on GitHub

Type

Indicator, Pine Script v5

Draws

On the price chart

Category

Divergence, Oscillators & momentum, Volume

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
BullishbooltruebullSwitch
BearishbooltruebearSwitch
HiddenbooltrueshowHidden
Exclude if broken trendlinebooltruenoBroken
Previous pivot bars before/afterint4ppLength
Next (divergent) pivot bars beforeint4cpLengthBefore
Next (divergent) pivot bars afterint2cpLengthAfter
Lookback barsint50lbBars
Lookback pivotsint2lbPivs
Regular divergence weightfloat1.0w_reg
Hidden divergence weightfloat1.0w_hid
Δ price weightfloat0.5w_p
Show all 40 settings
SettingTypeDefaultVariable
Δ indicator weightfloat1.5w_i
Bullish divergence price sourcesourcelowbullPsource
Bearish divergence price sourcesourcehighbearPsource
RSIbooltrueiRsi
Weightfloat1.1w_rsi
Extreme valuefloat1.0e_rsi
OBVbooltrueiObv
Weightfloat0.8w_obv
Extreme valuefloat1.0e_obv
MACDbooltrueiMacd
Weightfloat.9w_macd
Extreme valuefloat1.0e_macd
STOCHbooltrueiStoch
Weightfloat0.9w_stoch
Extreme valuefloat1.0e_stoch
CCIbooltrueiCci
Weightfloat1.0w_cci
Extreme valuefloat1.0e_cci
MFIbooltrueiMfi
Weightfloat1.0w_mfi
Extreme valuefloat1.0e_mfi
AObooltrueiAo
Weightfloat1.0w_ao
Extreme valuefloat1.0e_ao
Alertbooltruea_on
for values abovefloat5.0a_above
Show linesbooltruenoLine
Show labelsbooltruenoLab
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.

Similar Pine Scripts

257 stars

This overlay indicator looks for regular price divergences against a set of oscillators, using pivot highs and lows. It compares those pivots with RSI, MACD and its histogram, stochastic, CCI, momentum, OBV, a directional oscillator, volume-weighted MACD, Chai

Indicator v5 DivergenceOscillators & momentum Repaints
Updated 6 weeks ago · None stated GitHub repository of Snag - Best Futures V3

Price Divergence

by capissimo
114 stars

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

Indicator v4 DivergenceOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Price Divergence

RSI Div at dVWAP StDev

by cryptorife
75 stars

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

Indicator v4 DivergenceOscillators & momentum Repaints
Updated 3 years ago · GPL-3.0 GitHub repository of RSI Div at dVWAP StDev

This indicator builds a momentum score from the rate of change of close, using a lookback that expands or contracts with ATR relative to its standard deviation. It divides that rate of change by price standard deviation, scales the result, and weights it by vo

Indicator v5 Oscillators & momentumVolatility & bands Repaints
Updated 7 weeks ago · None stated GitHub repository of Adaptive Volatility-Adjusted Momentum Score
2 stars

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

Indicator v5 Oscillators & momentumMoving averages
Updated 8 months ago · None stated GitHub repository of Oscillator Workbench — Chart [LucF]

Combination by Yzz

by webcrack4
1 stars

This indicator merges multiple momentum oscillators including MACD, RSI, Stochastic, CCI, Momentum, OBV, VW MACD, Chaikin Money Flow and Money Flow Index into one chart. It scans for regular and hidden divergences between the chosen indicators to signal potent

Indicator v4 Oscillators & momentumDivergence
Updated 9 months ago · None stated GitHub repository of Combination by Yzz

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers