OPEN-SOURCE SCRIPT

Relative Strength with F&O stocks sector automatic mapping

Updated
Determine the relative strength of a stock vis-a-vis a larger benchmark. Default is NIFTY50.


Key Features:
Sector Mapping: The script identifies the stock's sector using predefined arrays for sector stocks (e.g., healthcareStocks, energyStocks). It maps the stock to its sector index, like NSE:CNXIT for IT stocks.
Relative Strength Calculation: The RS is calculated by comparing the stock's price movements with its sector index or the default index.
Customizable Options:
Period (length) for RS calculation.
Display options like zero line, reference labels, trend color, etc.
Visual Enhancements:
Trend colors for RS crossovers.
Option to show moving averages of RS or price for confirmation.


note:- original author bharatTrader
original script :
Relative Strength of a stock



updated by: Sheladiya_Aakash , Vijay0388
Release Notes
Determine the relative strength of a stock vis-a-vis a larger benchmark. Default is NIFTY50.


Key Features:
Sector Mapping: The script identifies the stock's sector using predefined arrays for sector stocks (e.g., healthcareStocks, energyStocks). It maps the stock to its sector index, like NSE:CNXIT for IT stocks.
Relative Strength Calculation: The RS is calculated by comparing the stock's price movements with its sector index or the default index.
Customizable Options:
Period (length) for RS calculation.
Display options like zero line, reference labels, trend color, etc.
Visual Enhancements:
Trend colors for RS crossovers.
Option to show moving averages of RS or price for confirmation.


note:- original author bharatTrader
original script :
Relative Strength of a stock


updated by: Sheladiya_Aakash , Vijay0388
Relative Strength Index (RSI)

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer