OPEN-SOURCE SCRIPT

Sector Relative Strength [Afnan]

This indicator calculates and displays the relative strength (RS) of multiple sectors against a chosen benchmark. It allows you to quickly compare the performance of various sectors within any global stock market. While the default settings are configured for the Indian stock market , this tool is not limited to it; you can use it for any market by selecting the appropriate benchmark and sector indices.

📊 Key Features ⚙️
  • Customizable Benchmark: Select any symbol as your benchmark for relative strength calculation. The default benchmark is set to `NSE:CNX100`. This allows for global market analysis by selecting the appropriate benchmark index of any country.
  • Multiple Sectors: Analyze up to 23 different sector indices. The default settings include major NSE sector indices. This can be customized to any market by using the relevant sector indices of that country.
  • Individual Sector Control: Toggle the visibility of each sector's RS on the chart.
  • Color-Coded Plots: Each sector's RS is plotted with a distinct color for easy identification.
  • Adjustable Lookback Period: Customize the lookback period for RS calculation.
  • Interactive Table: A sortable table displays the current RS values for all visible sectors, allowing for quick ranking.
  • Table Customization: Adjust the table's position, text size, and visibility.
  • Zero Line: A horizontal line at zero provides a reference point for RS values.


🧭 How to Use 🗺️
  • Add the indicator to your TradingView chart.
  • Select your desired benchmark symbol. The default is `NSE:CNX100`. For example, use SPY for the US market, or DAX for the German market.
  • Adjust the lookback period as needed.
  • Enable/disable the sector indices you want to analyze. The default includes major NSE sector indices like `NSE:CNXIT`, `NSE:CNXAUTO`, etc.
  • Customize the table's appearance as needed.
  • Observe the RS plots and the table to identify sectors with relative strength or weakness.



📝 Note 💡
  • This indicator is designed for sectorial analysis. You can use it with any market by selecting the appropriate benchmark and sector indices.
  • The default settings are configured for the Indian stock market with `NSE:CNX100` as the benchmark and major NSE sector indices pre-selected.
  • The relative strength calculation is based on the price change of the sector index compared to the benchmark over the lookback period.
  • Positive RS values indicate relative outperformance, while negative values indicate relative underperformance.


👨‍💻 Developer 🛠️
Afnan Tajuddin
comparativeanalysiscomparativestrengthFundamental AnalysisrelativestrengthRSsectorsector_analysissectoranalysissectorialsectorrotationsentimentstatistics

오픈 소스 스크립트

진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

차트에 이 스크립트를 사용하시겠습니까?


Website : marketup2date.com

Telegram for Updates: t.me/MarketUp2Date

WhatsApp Channel for Updates:
whatsapp.com/channel/0029Va6ByyH0LKZCc4Az4x0u

YouTube Channel:
youtube.com/@Marketup2dateByAfnan
또한 다음에서도:

면책사항