OPEN-SOURCE SCRIPT
已更新 RSI Divergence (Pine v4)

Summary
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
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.
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.
版本注释
Complete Upgrade - Logic restructured and implemented. 版本注释
upgraded to pine v5版本注释
Added Alert Parameters版本注释
Updating to include the same functionality that the built-in Tradingview RSI Indicator has standard, with SMA/EMA/BBand 'switch' function has recently added + cleaned up some of the syntax to be in alignment with the Pinecoders recommendations. If the former versions are preferred, simply copy the old pinescript and add as your own indicator.
Cheers,
ET
版本注释
May 11, 2023 - Terminology updated
- Removal of deprecated 'transp=' color function
- User Menu Reformatted
版本注释
Conversion to Pine v6- Faster loading and rending on chart
版本注释
Updated to Pine v6 - Added gradient fill for overbought and oversold
- Scales will only show RSI value and RSI MA value
版本注释
2/18/2025Updated: Menu Inputs and Formatting
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
Eric Thies
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
Eric Thies
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。