All indicators

Sector Relative Strength

Created by StockLeave

Save
Sector Relative Strength chart preview

Sector Relative Strength

Sector Relative Strength full chartOpen original image in a new tab ↗

A systematic approach to comparing sector performance against the S&P 500 by calculating ratio changes and Z-scores to identify market leadership and potential investment opportunities.

Explore complementary indicator roles
UNDERSTAND THE TOOL

How it works

The script calculates a performance ratio between each sector ETF and SPY over a specified lookback period, typically 21 bars. By comparing the sector's price movement relative to the benchmark index, traders can determine whether a sector is outperforming, underperforming, or moving in line with the broader market.

Additionally, the script generates a Z-score that measures how far the current ratio deviates from its recent mean. This normalization allows for standardized comparisons across different sectors, accounting for variations in price levels and volatility. The resulting data is presented in a sortable table displaying relative percentage change, Z-score, and trend direction.

Why it may be useful

By analyzing sector performance relative to the S&P 500, traders gain insights into broader market dynamics and potential leadership sectors. This approach helps identify where capital is flowing and which market segments are demonstrating strength or weakness, enabling more strategic investment decisions.

The methodology provides a systematic, data-driven approach to understanding market sentiment beyond simple price movement. By normalizing performance through percentage changes and Z-scores, traders can make more informed comparisons and develop more sophisticated screening strategies that go beyond individual stock selection.

When to explore it

This signal is most effective for traders seeking a top-down market analysis approach, particularly those interested in sector rotation and macro-level market trends. It works best during periods of market transition or when attempting to identify emerging market leadership across different economic sectors.

Traders can utilize this signal when developing broader investment strategies, constructing diversified portfolios, or seeking to understand underlying market momentum. It is particularly valuable for swing traders and investors who want to make more nuanced allocation decisions based on relative sector performance rather than absolute price movements.

Keep exploring

CHECK THE DETAILS

What we’ve verified

Access, alerts and repainting behaviour have not been independently verified for this indicator. Check the creator’s current publication and settings.

General descriptions and classifications are recovered research. Verified details above identify the specific checks we have completed. Check the creator’s current publication for later changes.