OPEN-SOURCE SCRIPT
Relative Strength Sector Ranking

Relative Strength Sector Ranking
This indicator provides a real-time relative strength analysis of your stock against the top 10 constituents of its sector. By automatically detecting the sector (Technology, Financials, etc.) and comparing performance over your chosen timeframe (1D, 1W, 1M, etc.), it assigns a clear Percentile Rank (e.g., 9/10) to help you identify sector leaders and laggards.
Key Features:
Auto-Sector Detection: Automatically selects the top peers based on the stock's GICS sector.
Dynamic Ranking: Sorts and ranks the stock against industry giants like NVDA, JPM, or XOM.
Visual Dashboard: A clean, transparent table displays the full leaderboard and your stock's specific standing.
Customizable: Choose your timeframe and adjust the visual style to match your chart's aesthetic.
How to Use:
Add the indicator to your chart.
The script will auto-detect the sector and display the top 10 peers in the top-right corner.
Check your stock's Rank and Score to gauge its relative strength.
Use the settings to change the timeframe (e.g., verify if a stock is a leader on the 1M chart but lagging on the 1W).
This indicator provides a real-time relative strength analysis of your stock against the top 10 constituents of its sector. By automatically detecting the sector (Technology, Financials, etc.) and comparing performance over your chosen timeframe (1D, 1W, 1M, etc.), it assigns a clear Percentile Rank (e.g., 9/10) to help you identify sector leaders and laggards.
Key Features:
Auto-Sector Detection: Automatically selects the top peers based on the stock's GICS sector.
Dynamic Ranking: Sorts and ranks the stock against industry giants like NVDA, JPM, or XOM.
Visual Dashboard: A clean, transparent table displays the full leaderboard and your stock's specific standing.
Customizable: Choose your timeframe and adjust the visual style to match your chart's aesthetic.
How to Use:
Add the indicator to your chart.
The script will auto-detect the sector and display the top 10 peers in the top-right corner.
Check your stock's Rank and Score to gauge its relative strength.
Use the settings to change the timeframe (e.g., verify if a stock is a leader on the 1M chart but lagging on the 1W).
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.