RSI based support resistance levels

This indicator draws support line and resistance lines in the price chart.

How ?

For drawing the support/resistance line we need to first determine the demand and supply.

We are using too-familiar indicator RSI to determine when the script is oversold and overbought.

Now oversold (in RSI) is not a point, it’s a zone. The RSI indicator comes below 30, stays there and goes up above 30. Similarly for overbought.

Now if you carefully look at the oversold region – the lowest point of the oversold region is the place where the demand came (for surety) and push the indicator (and price) up.
Similarly: the highest point of overbought is the place where (for surety) the supply came and push the indicator (and price) down.

So that’ the supply / demand line (for surety).

In this indicator, based on the RSI we are just drawing support and resistance lines in the chat. That’s all.

What is unique ?
Trendline concept is not new. RSI is not new. RSI overbought/oversold is not new.
There are indicators exist to draw trendlines. Some of them works beautifully.
However, none of these, we are aware of, uses RSI to determine it. And, we believe, the most logical way to determine support/resistance is RSI.

Note: We are not responsible for any trading/investment decision you are taking out of the outcome of this indicator.

Release Notes:
In the first version of the script, we have the only one period RSI support (default: 14).
In this version of the script, we are adding two features:

  • Multiple RSI period Support/Resistance (e.g. 7, 14, 21, 28). You can turn off also through a boolean switch.
  • The slanted trendlines. Often in trading, only horizontal support/resistance lines are not enough, you may also need a slanted trendlines. It's for that.

The Logic of creating slanted trendlines are simple: Just follow the RSI path. The way RSI goes through from overbought to oversold (or vice versa), just draw a line following these two price points in the chart. Simple, but works!
Release Notes:
I think people are getting Very Confused with so many lines. Sorry.
So now, by default, turned off the slanted trendlines (blue colored).
User can, of course, turn it ON if user wishes so. (Please check the last toggle control on the indicator's settings).
Release Notes:
One more feature is added.

Showing a table besides the chart to show the Support/Resistance levels for easiler consumption.
Also the same table data is available in an alert, if someone wants to use it.
Release Notes:
Some more updates.
We just added an alert of Daily levels (in Daily timeframe).
User can potentially sets up the alert to keep the chart in the Daily timeframe to receive the alerts.

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?