OPEN-SOURCE SCRIPT

RSI Divergence

By faytterro
Updated
What is "RSI Divergence"?
"RSI Divergence" is a indicator that find RSI divergence automatically.

What it does?
When it finds an RSI divergence, it draws a line on the indicator.

How it does it?
The lines are found using the least squares method. If the signs of the linear regression on the graph and the linear regression plotted on the RSI are different, this is considered divergence.

How to use it?
RSI lenght = RSI lenght
source = source of RSI
RSI Divergence Lenght = lenght of lines that draws on indicator
zoom = zoom
examples:
snapshot
snapshot
snapshot
snapshot
snapshot
Release Notes
from now on we have a strategy for this indicator: https://tr.tradingview.com/script/ASVRhqFM/
Release Notes
buy and sell alert added. alarms are triggered (in real time) without waiting for the close on each candle when the conditions are met.
snapshot
Release Notes
From now on, you can see previous divergences, with newly added inputs.
price scale has changed.
automatedsignalsDivergencedivergencesdivergencetradingrelativestrengthRelative Strength Index (RSI)rsi_divergencersidivergence

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