OPEN-SOURCE SCRIPT

Price Divergence Detector V3 revised by JustUncleL

Updated
This is a revised version of the original "Price Divergence Detector by RicardoSantos".
Description:
Price Divergence detection for various methods : RSI, MACD, STOCH, VOLUME, ACC-DIST, FISHER, CCI, BB %B and Ehlers IdealRSI. Both Hidden and Regular Divergences are detected.

Mofidifications:
Revision 3.0 by JustUncleL
  • Added option to disable/enable Hidden and Regular Divergence
  • Added new divergence method BB %B (close only)
  • Added new divergence mothos Ehlers IdealRSI (close only)


Revision 2.0 - by RicardoSantos

References:
Information on Divergence Trading:
Release Notes

Updated to Revision 3 of Pinescript
Updated with some RicardoSantos version 2.022 revisions.
Release Notes
..
Added Elders Force Index method.
Other small changes.
Release Notes
3.2 Update
  • Added Trend Volume Accumulation, this option really works only well with Renko and HA candles. You have the option to use EMA for trend direction change instead of candle bull/bear direction.
  • NOTE: Trader discretion is required to manually filter out invalid Divergence, there is no account made for the length of each trend when comparisons are made.
detectionDivergenceFisher TransformhiddendivergenceMoving Average Convergence / Divergence (MACD)regulardivergenceRelative Strength Index (RSI)Stochastic OscillatorTrend AnalysisVolume
JustUncleL
Wizard
JustUncleL

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer