OPEN-SOURCE SCRIPT

RSI Instant Divergence

This script detects RSI divergence—a common signal indicating potential trend reversals. It compares price action and RSI behavior to identify two types of divergences:

1- Bearish Divergence (Sell Signal):
Occurs when the price forms a higher high while RSI drops (weaker momentum).
A label appears above the candle, and an alert is triggered: "Divergence: Sell Signal."

2 -Bullish Divergence (Buy Signal):
Occurs when the price makes a lower low while RSI rises (stronger momentum).
A label appears below the candle, and an alert is triggered: "Divergence: Buy Signal."

The labels are color-coded (orange for sell, blue for buy) and include detailed RSI and price info in a tooltip. Alerts help you act immediately when divergence is detected.

This tool is perfect for spotting potential trend reversals and refining your entry/exit strategy. Let me know if you'd like to customize it further! 😊

Tooltip Feature: Each label includes a tooltip with precise RSI and price details (current and previous values) as well as the percentage change in RSI, giving you deeper insight into the divergence. This tool is great for identifying trend reversal points and includes visual labels, tooltips, and alerts to make real-time trading decisions easier. Let me know if you’d like adjustments!
Candlestick analysisChart patternsRelative Strength Index (RSI)rsidivergencersidivergences

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明