Pine Library · 417 open-source scripts

Free Divergence Pine Scripts (page 5)

Open-source Pine scripts that find divergence between price and an oscillator such as RSI or MACD, regular and hidden.

Pine scripts417
Code shown here223open licence
Updated in a year292
No repaint flag364

Divergence: Indicators, Strategies and Libraries

1 stars

The Detrending Net Distance Ratio indicator computes the difference between current close and close prices at ten different lookback periods ranging from seven to three hundred sixty bars. It sums the positive differences to create a net value and sums their a

Indicator v5 DivergenceMean reversion
Updated 3 years ago · None stated GitHub repository of Detrending Net Distance Ratio

Stochastic RSI Divergences

by tistaharahap
25 stars

Calculates the Stochastic RSI oscillator and automatically identifies regular and hidden bullish or bearish divergences against price movement. It detects pivot points in the oscillator line using configurable left and right lookback lengths and compares them

Indicator v4 Oscillators & momentumDivergence Repaints
Updated 6 years ago · None stated GitHub repository of Stochastic RSI Divergences
24 stars

This indicator plots a Cipher B-style oscillator in a separate pane and can source its calculations from Heikin Ashi candles when that option is on. It draws WaveTrend lines with optional buy, gold, sell, and divergence dots, plus overbought and oversold level

Indicator v5 Oscillators & momentumDivergence
Updated 4 years ago · MPL-2.0 GitHub repository of Cipher B Heikin Ashi

Trend Compass 15m

by chris-c-thomas
14 stars

Trend Compass 15m is an intraday trend analysis overlay designed for 15-minute charts. It calculates a triple exponential moving average ribbon, higher-timeframe reference EMAs from 1H, 4H, and Daily periods, RSI and MACD divergences, On-Balance Volume trends,

Indicator v6 TrendMoving averages Repaints
Updated 6 months ago · MIT GitHub repository of Trend Compass 15m

QPulse

by JasonTeixeira
9 stars

QPulse is a multi-factor indicator that draws in a separate pane to evaluate market momentum, volume flow, and volatility dynamics. It calculates volume delta, a cumulative delta proxy, advanced adaptive ATR, and a hybrid volume-weighted RSI with overbought an

Indicator v6 Oscillators & momentumVolatility & bands
Updated 13 days ago · Custom licence GitHub repository of QPulse

MFI Strategy - Eterna MCP

by EternaHybridExchange
9 stars

This strategy calculates the Money Flow Index (MFI) to identify momentum shifts, overbought or oversold states, and price divergences. It opens long entries when MFI crosses above the oversold level or displays bullish divergence while under the midline. It en

Strategy v5 Oscillators & momentumDivergence
Updated 7 months ago · MIT GitHub repository of MFI Strategy - Eterna MCP
4 stars

This indicator scans up to ten user-selected symbols for regular RSI divergence and for RSI extremes. It compares confirmed pivot lows and highs in price and a 14-period RSI, then sends a bullish alert on a price lower low with an RSI higher low and a bearish

Indicator v5 Oscillators & momentumDivergence

MML Multi Indikator Script

by theupslidedown
2 stars

This strategy plots a range filter and high and low target bands on the price chart, and colors bars from filter direction. Inputs cover a backtest date window, WaveTrend Cipher B channel and average lengths, overbought and oversold levels, divergence threshol

Strategy v4 TrendOscillators & momentum
Updated 3 years ago · None stated GitHub repository of MML Multi Indikator Script

Market Cipher B

by kasutu
1 stars

A community imitation of the Market Cipher B oscillator, drawn in a separate pane. It plots a WaveTrend oscillator with a fast line, overbought and oversold levels, and dots at wave crossings, including buy, sell, gold and divergence dots. It also includes a s

Indicator v5 Oscillators & momentumDivergence
Updated 2 weeks ago · None stated GitHub repository of Market Cipher B
1 stars

This Pine Script v6 strategy detects classic divergences between price action and the Stochastic oscillator in a separate pane. Bullish divergences trigger long entries when price forms lower lows while %D forms higher lows. Bearish divergences trigger short e

Strategy v6 DivergenceOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Stochastic Divergence Strategy
1 stars

This indicator merges the Quantum Flow v19.1 gold smart money engine with an RSI cross module on the price chart. The RSI module shows faded buy and sell marks on a normal cross and stronger high probability marks when the cross occurs inside a Quantum Flow zo

Indicator v6 SMC / ICT / price actionOscillators & momentum
Updated 3 months ago · None stated GitHub repository of Quantum Flow v19.1 + RSI Edge

Talons RSI Divergence

by muammeryldrm42
1 stars

The Talons RSI Divergence strategy detects bullish and bearish divergences by combining RSI values with price pivots. It calculates RSI using a customizable period and identifies pivot highs and lows on both price and RSI with a lookback setting. Bullish diver

Strategy v5 Oscillators & momentumDivergence
Updated 5 months ago · None stated GitHub repository of Talons RSI Divergence
1 stars

A counter-trend indicator that complements a trend-following sibling. It looks for fading trends in two ways: four-hour EMAs narrowing together followed by a counter-cross on one hour, or RSI divergence on four hours with a rejection candle. A signal offset ca

Indicator v5 Mean reversionDivergence
Updated 7 months ago · None stated GitHub repository of V16 Trend Exhaustion Catcher

TSI & Divergences

by munlit
1 stars

A separate-pane indicator that calculates the True Strength Index with fast, slow and signal lengths and detects regular and hidden divergences between price and the oscillator. Pivot lookback and range inputs control how far apart pivots may be, and each dive

Indicator v5 Oscillators & momentumDivergence
Updated 1 year ago · None stated GitHub repository of TSI & Divergences
1 stars

This indicator plots Stochastic RSI %K and %D lines over the price chart. It detects bullish and bearish divergences by comparing price highs and lows to those of Stochastic RSI within a lookback period. Users set divergence range (short, medium, long), price

Indicator v4 Oscillators & momentumTrend Repaints
Updated 3 years ago · Apache-2.0 GitHub repository of Stochastic RSI Divergence+

Divergenced A002

by ruckard
13 stars

Divergenced A002 is a momentum divergence strategy designed to identify entry opportunities using Squeeze Momentum Indicator shifts alongside price action. It enters long when momentum reaches higher lows during lower price lows and enters short on opposite di

Strategy v5 Oscillators & momentumDivergence
Updated 1 year ago · None stated GitHub repository of Divergenced A002

RSI Divergence Indicator MP

by midngtpickle
2 stars

The RSI Divergence Indicator MP detects regular and hidden bullish and bearish divergences using configurable RSI and pivot parameters. It plots the RSI oscillator with customizable overbought and oversold levels in a separate pane, while optionally drawing di

Indicator v6 Oscillators & momentumDivergence
Updated 4 weeks ago · Custom licence GitHub repository of RSI Divergence Indicator MP
2 stars

This indicator calculates and plots cumulative volume delta directly on the price chart using lower timeframe intrabar data. It displays volume delta values as lines or histograms, tracking volume flow across customizable reset intervals such as fixed sessions

Indicator v6 VolumeDivergence
Updated 8 months ago · None stated GitHub repository of CVD - Cumulative Volume Delta (Chart)

Yield Lag Forecast

by rellis3
1 stars

Detects the FX pair on the chart and pulls daily 2-year and 10-year government yields for both currencies. It blends them into a yield-spread z-score drawn as an oscillator in a separate pane, tracks its rate of change and flags abnormal moves. A rolling regre

Indicator v6 Oscillators & momentumDivergence
Updated yesterday · None stated GitHub repository of Yield Lag Forecast

Reload Ranger Indicator

by GreyssonEnterprises
1 stars

An indicator that looks for reversal setups inside a Fibonacci retracement zone, defaulting to 61.8 to 78.6 percent with a sweet spot level, measured from a higher timeframe. It combines W and M pattern matching with Williams %R, MACD, RSI and an OBV EMA, and

Indicator v5 Support & resistanceOscillators & momentum Repaints
Updated 2 months ago · MIT GitHub repository of Reload Ranger Indicator

MACD

by rubbermetal
1 stars

MACD is a standard moving average convergence divergence oscillator in a separate pane. It shows the MACD line, a signal line that can use EMA or SMA smoothing, and a histogram colored in four shades for rising and falling momentum above or below zero. Optiona

Indicator v6 Oscillators & momentumDivergence
Updated 4 months ago · MPL-2.0 GitHub repository of MACD

MTF RSI Confluence

by shubhamtaywade82
1 stars

A strategy that scores RSI across four timeframes, with weights falling from the chart timeframe to the 4-hour, and adds or subtracts points for RSI divergence at recent pivots. It enters long when the score rises above a threshold and short when it falls belo

Strategy v6 Oscillators & momentumDivergence Archived
Updated 5 months ago · None stated GitHub repository of MTF RSI Confluence
1 stars

Plots a standard 14-period RSI in a separate pane with 30, 50 and 70 reference lines and detects divergence between RSI and price. It compares confirmed pivot lows and highs of the RSI against price over a minimum and maximum bar range. Regular bullish and bea

Indicator v6 Oscillators & momentumDivergence
Updated 6 months ago · None stated GitHub repository of RSI Divergence Indicator

Total Divergence+

by krosenfeld7
1 stars

Total Divergence+ is a price-chart indicator that looks for divergences between price and several oscillators. It can show RSI, Stochastic RSI, Stochastic, ADX, MACD, and Price Volume Trend divergences, each with its own display switch. Lookback lengths set ho

Indicator v4 DivergenceOscillators & momentum
Updated 3 years ago · Apache-2.0 GitHub repository of Total Divergence+

Divergenced B004

by ruckard
13 stars

Divergenced B004 is a Pine Script strategy that plots on the price chart and looks for divergences in the Squeeze Momentum Indicator. It shorts when a green-section squeeze value falls while price rises, and longs when a red-section squeeze value rises while p

Strategy v5 DivergenceOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Divergenced B004
5 stars

This indicator plots RSI(14) on the price chart along with regular and hidden bullish and bearish divergences. It detects divergences by comparing price highs and lows to RSI values using pivot points with configurable lookback bars. Signals appear as triangle

Indicator v4 Oscillators & momentumDivergence
Updated 2 years ago · None stated GitHub repository of CB RSI (Divergence and OB/OS)
2 stars

This indicator calculates RSI and identifies regular and hidden bullish and bearish divergences against price swing pivots in a separate pane. It features an early signal mode that uses a shorter lookback to detect provisional divergence earlier, tracking whet

Indicator v6 Oscillators & momentumDivergence
Updated 4 weeks ago · Custom licence GitHub repository of RSI Divergence Indicator MP v3
2 stars

WaveTrend Oscillator Pro calculates WT1 and WT2 lines derived from exponentially smoothed typical price channels and moving averages. Displayed in a separate pane, it visualises momentum alongside customizable overbought and oversold bands. Crossover signals b

Indicator v6 Oscillators & momentumDivergence
Updated 2 months ago · Custom licence GitHub repository of WaveTrend Oscillator Pro [Vantrade]
2 stars

This indicator plots cumulative volume delta as candles in a separate pane. It builds volume delta from lower-timeframe intrabars, either as raw delta or as a percent of volume, and accumulates it until a chosen reset. Resets can follow a higher timeframe, a f

Indicator v6 VolumeDivergence
Updated 8 months ago · None stated GitHub repository of CVD - Cumulative Volume Delta Candles

Reload Ranger Strategy

by GreyssonEnterprises
1 stars

A Pine v5 strategy that trades reversal setups inside a Fibonacci retracement zone taken from a higher timeframe, combining W and M pattern matching with Williams %R, MACD, RSI and OBV filters. Risk per trade starts at a base percentage with an increment and a

Strategy v5 Support & resistanceOscillators & momentum
Updated 2 months ago · MIT GitHub repository of Reload Ranger Strategy

A strategy shown in a separate pane that trades divergences between price and cumulative volume delta. A confirmed bullish divergence opens a long and a bearish one opens a short, with direction selectable, and entries can be limited by divergence strength: fi

Strategy v5 DivergenceVolume
Updated 4 months ago · None stated GitHub repository of Cumulative Volume Delta Divergence + ATR Trailing Stop

Volume Divergence+

by krosenfeld7
1 stars

This indicator detects divergences between price highs and lows and those of the Price Volume Trend (PVT) line. It plots the PVT on the price chart and identifies bullish and bearish divergences based on user-selected lookback periods for price and PVT pivots,

Indicator v4 DivergenceVolume
Updated 3 years ago · Apache-2.0 GitHub repository of Volume Divergence+

Trend Compass Daily

by chris-c-thomas
14 stars

Trend Compass Daily is a chart overlay indicator designed to evaluate market trend structure, momentum, and volatility. It calculates a multi-EMA ribbon with an anchor level, higher-timeframe reference lines, RSI and MACD divergences, OBV volume context, and A

Indicator v6 TrendMoving averages
Updated 6 months ago · MIT GitHub repository of Trend Compass Daily

Divergenced C002

by ruckard
13 stars

Divergenced C002 is a trading strategy that identifies entry points using price divergences against the Squeeze Momentum Indicator. It compares price moves across Squeeze Momentum color changes to trigger long or short positions. Exits are generated by Curie c

Strategy v5 DivergenceOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Divergenced C002

RSI Divergence Strategy - Eterna MCP

by EternaHybridExchange
9 stars

This strategy calculates the Relative Strength Index (RSI) and identifies bullish and bearish divergences using RSI and price pivot points. It plots the RSI oscillator, overbought and oversold threshold lines, and divergence markers in a separate pane. A long

Strategy v5 Oscillators & momentumDivergence
Updated 7 months ago · MIT GitHub repository of RSI Divergence Strategy - Eterna MCP
7 stars

This indicator calculates the Relative Strength Index, the Money Flow Index, and a smoothed moving average of the RSI line. It plots these oscillators in a separate pane alongside upper and lower threshold bands. The script identifies momentum shifts by detect

Indicator v6 Oscillators & momentumVolume
Updated 5 months ago · None stated GitHub repository of RSI + MFI + TMA + Divergencias

CB RSI Divergence

by jerryinyang
5 stars

Calculates a 14-period Relative Strength Index and detects regular divergences between price and RSI pivot points. It scans across multiple previous pivot vertices stored in historical arrays. Bullish divergences require RSI below 40 at a pivot low, while bear

Indicator v4 Oscillators & momentumDivergence
Updated 2 years ago · None stated GitHub repository of CB RSI Divergence

KARPUZLU-RSI KRIPTO

by gocaman
3 stars

Calculates a Relative Strength Index (RSI) with an exponential moving average (RSI-EMA) in a separate pane. It plots fixed overbought and oversold reference bands and fills the area between the RSI and its EMA based on directional momentum. The script detects

Indicator v5 Oscillators & momentumDivergence
Updated yesterday · None stated GitHub repository of KARPUZLU-RSI KRIPTO
3 stars

This indicator calculates a Wilder-style RSI from price changes and can smooth it with a simple moving average. It also flags simple bullish and bearish divergence by comparing RSI and price extremes over a lookback window, and it wraps those functions with op

Indicator v5 Oscillators & momentumDivergence
Updated 7 months ago · None stated GitHub repository of RSI Library with Debugging

Quad Rotation 14 3

by rubbermetal
1 stars

Quad Rotation 14 3 is the medium pane of a four-stochastic setup with periods 9, 14, 40 and 60. It plots the 14/3 stochastic K and D lines in a separate pane with oversold and overbought zones, K/D cross triangles inside extreme zones, and a convergence band w

Indicator v6 Oscillators & momentumDivergence
Updated 4 months ago · MPL-2.0 GitHub repository of Quad Rotation 14 3
1 stars

Calculates Relative Strength Index (RSI) across four configurable timeframes using security calls with lookahead disabled. It identifies regular bullish and bearish divergences between price pivots and the primary RSI over a user-defined lookback window. A wei

Indicator v6 Oscillators & momentumDivergence Archived
Updated 5 months ago · None stated GitHub repository of Multi-Timeframe RSI [Agent Example]

TMA-Legacy

by rajatjpatel
1 stars

A separate-pane RSI toolkit rebuilt for a trading community after the original author left. 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 detec

Indicator v5 Oscillators & momentumDivergence
Updated 4 years ago · None stated GitHub repository of TMA-Legacy
55 stars

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

Indicator v6 Oscillators & momentumDivergence
Updated 6 months ago · Apache-2.0 GitHub repository of RSI Divergence Detector
53 stars

The script calculates the Relative Strength Index (RSI) alongside customizable overbought and oversold thresholds. It tracks recent high and low values over a user-defined lookback period to detect price and momentum divergence. Bullish and bearish divergences

Indicator v6 Oscillators & momentumDivergence
Updated 2 months ago · MPL-2.0 GitHub repository of RSI Divergence [Ahmed Edition]

Divergenced D002

by ruckard
13 stars

Divergenced D002 is a trading strategy designed to identify entries based on price and Squeeze Momentum indicator divergences. It triggers long or short positions when histogram color transitions conflict with price higher highs or lower lows. Position exits a

Strategy v5 DivergenceOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Divergenced D002

This indicator projects a dual-asset momentum matrix visualizer directly onto the price chart overlay. It calculates normalized momentum for the chart symbol using either RSI or Stochastic inputs adjusted by ATR volatility, and compares it against a benchmark

Indicator v6 Oscillators & momentumVolatility & bands Repaints
Updated 3 months ago · None stated GitHub repository of Pro Grid Elite: Advanced Dual-Asset Momentum Matrix

More Pine Script Categories

Browse the whole Pine Library

Third-party code. ForexR lists open-source Pine scripts from GitHub; it did not write, test or endorse them, and their summaries are generated automatically from each script's code and README. Indicators describe the past, and a strategy's backtest can look better than live trading. Check a script on a demo account before you rely on it. CFDs and leveraged forex are complex instruments with a high risk of losing money rapidly.

Learn to Use Pine Scripts

Free, plain-English guides: add a script to TradingView, read what it does, test it and avoid the common traps.

  1. 1Using this librarySearch, filters, licences and what the badges mean.
  2. 2Add a script to TradingViewCopy, paste into the Pine Editor, save and add to chart.
  3. 3Indicators, strategies and librariesWhat each type does and how to tell them apart.
  4. 4Spot a script that repaintsWhy some signals change after the bar closes.
  5. 5Backtest a strategyStrategy Tester settings that keep results honest.
  6. 6Send alerts to MT4 or MT5From a TradingView alert to an order in MetaTrader.
  7. 7What Pine Script isThe language, what it can and cannot do, and where to start.
  8. 8Write your first indicatorA complete script, line by line, in the Pine Editor.
  9. 9Read a script before you trust itA routine for checking inputs, logic and red flags.
  10. 10Edit a script safelyChange colours and lengths, add a filter or an alert.
  11. 11Pine Script alertsalertcondition(), alert(), placeholders and webhooks.
  12. 12Build a crossover strategyAn EMA cross strategy with an ATR stop, ready to test.

Trade Your Charts With a Regulated Broker

Compare regulated brokers on platforms, spreads, minimum deposit and leverage.

Compare brokers