yatrader2

Divergence Indicator (any oscillator)

A modification of the TV builtin "Divergence indicator" (Version 10) that can be applied to any indicator, and can be plotted on price as well.

Usage:
Add your favorite oscillator, RSI , Klinger , TSI, CMF , or anything else to a chart.
Click the little ... (More) on the oscillator.
Then add this indicator "Divergence Indicator (any oscillator)" on your oscillator of choice.
Click the settings on this indicator and make sure the source is set to the right plot from your oscillator.
Watch for it to plot divergences...

Add this indicator a second time on the price chart (and select the same oscillator plot), but check the box "plot on price (rather than on indicator)""
See you divergence plotted on price (as well as on the oscillator)
Release Notes: Fixed bug in the plots on price. Thanks to @sal157011 for the bug report.
Release Notes: Added an option to delay plot until candles are closed (ie no repainting). If you select this option divergences in real time will match historical ones, but plots will be delayed until candle close.
By request of @cyatophilum @AbhijeetMuneshwar
Remove from Favorite Scripts Add to Favorite Scripts

Comments

This looks great
I’ve not added any new indicators before.
How do I add this ?
Sorry for what might be a simple question.
+9 Reply
yatrader2 Mattcharles
@Mattcharles, Click the fx icon to add an indicator, then follow the instructions at the top of this page.
Reply
This publication is now featured in our Editors' Picks. In the name of all TradingView traders, thank you for your valuable contribution to the TradingView community, and congrats!
+4 Reply
yatrader2 PineCoders
@PineCoders, Thanks, glad you like it.
+1 Reply
This is nice. Thanks
+2 Reply
yatrader2 lkg9073
@lkg9073, Thanks!
Reply
Good thought and well coded ,thanks for sharing . Good work.
+1 Reply
Thank you so much yatrader2 for this script. It's very helpful.
+1 Reply
Congrats @yatrader2 !! Great indi, luv it !
Thanks :)
+1 Reply
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter
Profile Profile Settings Account and Billing Referred friends Coins My Support Tickets Help Center Ideas Published Followers Following Private Messages Chat Sign Out