RSI Overbought/Oversold [Overlay Highlighter]

s3raphic333 Updated   
Indicator to show when the RSI is in oversold(Below 30) or overbought (Above 70) conditions. The background color of the chart changes colors in the areas where the above conditions are met.

Price can often reverse in these areas. However, this depends on the strength of the trend and price may continue higher or lower in the direction of the overall trend.

Divergence has been added to aid the user in timing reversals. Divergences are plotted by circles above or below the candles. Divergence is confirmed so there is a delay of one candle before the signal is given on the previous candle. Again, everything depends on the strength of the trend so use proper risk management.

Once the RSI has entered into oversold/overbought conditions, it is recommended to wait for divergence before entering into the trade near areas of support or resistance. It is recommended to utilize this strategy on the H4 timeframe, however, this particular strategy works on all timeframes.

This indicator is a modified version of seoco's RSI Overbought/Oversold + Divergence Indicator. The user interface has been refined, is now overlayed on the chart, and my own divergence code has been inserted.

Release Notes:
Refined table

  • adjusted table locations
  • adjusted color to change based on oversold/overbought conditions

Added lines

  • lines will be plotted where rsi divergence signals
  • alert condition for deviation of lines

Cleaned up UI
Release Notes:
  • added William's Fractals to allow user to see support/resistance once divergence is triggered
  • support/resistance dashed line will show at previous fractal; allows user see target to confirm divergence.
  • support broken = bearish div confirmed; resistance broken = bullish div confirmed
  • added rsi momentum in table
  • up triangle = bullish mom; down triangle = bearish mom
  • added alert functions; ensure you delete alert message when setting them
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 a publication is governed by House Rules. You can favorite it to use it on a chart.


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.

Want to use this script on a chart?