OPEN-SOURCE SCRIPT
Updated Comparative Relative Strength of a stock

Perform comparative relative strength of a stock. Default base is NIFTY 50.
Release Notes
Cosmetic changes to make the display pretty and input choices in more logical sequence.Release Notes
Added input as source. Some cosmetic changes.Release Notes
- version 5
- Added color code for CRS moving average
A color-based trend on the Ratio moving average. The trend lookback is configurable.
Release Notes
- Possible to plot candles, of ratio chart, instead of line chart only.
Release Notes
Updated to include a "CRS Score" and "CRS Pattern"- CRS Score: The number of consecutive bars, when the trend of the relative strength is increasing/decreasing. If CRS is falling, score will be negative, if rising, score will be positive and 0 if it is neither positive nor negative (blue)
- CRS Pattern: The pattern of the last 23 (default) bars for the CRS Trend.
If say, the CRS Pattern is RRRRRRRRRSSGG - It means that after 11 bars, the strength is now positive for last 2 bars. This is a good way to visualise a turn around in relative strength of the stock. Higher the number of opposite trend the greater that chance of the reversal.
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.