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
Bullish divergence occurs when price forms a lower low but volume forms a higher low, and bearish divergence when price forms a higher high but volume forms a lower high. It calculates ATR for dynamic stop loss and take profit levels using user-set multipliers. Pivot detection uses customizable left bars, right bars, and minimum distance. The script can display signals and background colors. It plots on the price chart and supports various markets and timeframes.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Pivot Left Bars
integer
5
leftBars
Pivot Right Bars
integer
5
rightBars
Min Bars Between Pivots
integer
10
minPivotDistance
ATR Period
integer
14
atrPeriod
Stop Loss Multiplier (ATR)
float
2.0
slMultiplier
Take Profit Multiplier (ATR)
float
4.0
tpMultiplier
Show Signals
bool
true
showSignals
Show Background Color
bool
true
showBg
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 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
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
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
Nexural QWAP calculates a volume-weighted average price combined with a cumulative volume delta order flow engine directly on the main price chart. It analyzes market structure by detecting volume absorption, liquidity sweeps, price-CVD divergence, stacked imb
This indicator identifies regular and hidden bullish and bearish divergences between price action and multiple technical indicators, including RSI, OBV, MACD, Stochastic, and CCI. It evaluates price and indicator pivots over a configurable lookback window, cal