OPEN-SOURCE SCRIPT
RSI Divergence Pine Screener [XoRonX]

RSI Divergence Pine Screener is designed to help scan watchlists using TradingView’s Pine Screener. The script detects RSI-based regular and hidden divergences by comparing price pivots with RSI pivots, then outputs clean numeric plots that can be used as screener columns or filters.
The indicator also displays the RSI line on the chart with overbought, oversold, and midline levels for visual confirmation.
Signal Code:
Main Features:
Suggested Pine Screener Filters:
This tool is intended for technical analysis and screening support only. It does not provide financial advice. Always confirm signals with your own analysis and risk management.
The indicator also displays the RSI line on the chart with overbought, oversold, and midline levels for visual confirmation.
Signal Code:
- 2= Regular Bullish Divergence
- 1 = Hidden Bullish Divergence
- -1 = Hidden Bearish Divergence
- -2 = Regular Bearish Divergence
- 0 = No active signal
Main Features:
- Pine Screener-compatible outputs
- Regular bullish and bearish divergence detection
- Hidden bullish and bearish divergence detection
- Optional RSI overbought/oversold signal filter
- Signal hold period for easier screening
- RSI chart display for manual confirmation
- Alert conditions for active bullish, bearish, and specific divergence events
Suggested Pine Screener Filters:
- to find all active signals
Pine Script® - to find bullish setups
Pine Script® - to find bearish setups
Pine Script® - for bullish signals
Pine Script® - for bearish signals
Pine Script®
This tool is intended for technical analysis and screening support only. It does not provide financial advice. Always confirm signals with your own analysis and risk management.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.