RS-Magic

Short & Long Relative Strength

Relative Strength (RS) is a method of identifying stocks which are relatively stronger or weaker as compared the market as a whole or to a relevant benchmark.

To calculate the relative strength of a particular stock, divide the percentage change over some time period by the percentage change of a particular index over the same time period.

The value of RS Indicator oscillates around zero. If value of RS is above ZERO then security is outperforming the benchmark and if value of RS is below ZERO then security is outperforming the benchmark.

Here i have used two RS indicator lines in one indicator - Short Term RS (default value is 65) and Long Term RS (default value is 123).

I have set default benchmark index as Nifty 50 (NSE:NIFTY)
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.

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.

Want to use this script on a chart?