RSI Divergence (Pine v4)

Script highlights the divergences in RSI worth taking notice of. By comparing current envionment to relative sample we can see more than
the standard divergences that many catch through analysis. This framework aims to remove the bias or noise many see when looking for any supporting
evidence to their given emotion on a market.
Step-by-Step Walkthrough
- Calculates RSI
- Sets Divergence Framework
- -------> a. Defining variable values, mandatory in Pine 4)
- -------> b. Identify Divergences --> "If bar with lowest / highest is current bar, use it's value"
- Compare high of current bar being examined with previous bar's high --> "If curr bar high is higher than the max bar high in the lookback window range"
- Finds pivot point with at least 2 right candles with lower value
- Finds pivot point with at least 2 right candles with lower value
- Plot
- Set Alerts
This RSI Script is intended for public use and can be shared / implemented as needed
Questions? I do not monitor my TradingView inbox. See email address in signature at the bottom of this page for contact information.
If the former versions are preferred, simply copy the old pinescript and add as your own indicator.
Cheers,
ET
- Terminology updated
- Removal of deprecated 'transp=' color function
- User Menu Reformatted
- Faster loading and rending on chart
- Added gradient fill for overbought and oversold
- Scales will only show RSI value and RSI MA value
Updated: Menu Inputs and Formatting
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Untuk akses pantas pada carta, tambah skrip ini kepada kegemaran anda — ketahui lebih lanjut di sini.
Penafian
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Untuk akses pantas pada carta, tambah skrip ini kepada kegemaran anda — ketahui lebih lanjut di sini.