OPEN-SOURCE SCRIPT
Updated S&P 500 Sector Performance Comparison

S&P 500 Sector Performance Comparison created by Edgar Simões.
This indicator compares the performance of all 11 S&P 500 Sector SPDR ETFs in a single normalized chart, making it easy to visualize sector rotation, market leadership, and relative strength across different market environments.
Included sectors:
XLK — Technology
XLF — Financials
XLV — Health Care
XLY — Consumer Discretionary
XLP — Consumer Staples
XLE — Energy
XLI — Industrials
XLB — Materials
XLU — Utilities
XLRE — Real Estate
XLC — Communication Services
Features:
Relative performance comparison in percentage terms
Clear color differentiation for each sector
Easy identification of outperforming and underperforming sectors
Useful for macro analysis, sector rotation strategies, and market trend confirmation
Designed for medium and long-term market analysis
This script helps traders and investors quickly identify:
Risk-on vs risk-off environments
Defensive vs growth leadership
Inflation-sensitive sectors
Momentum and sector rotation trends
Author: Edgar
This indicator compares the performance of all 11 S&P 500 Sector SPDR ETFs in a single normalized chart, making it easy to visualize sector rotation, market leadership, and relative strength across different market environments.
Included sectors:
XLK — Technology
XLF — Financials
XLV — Health Care
XLY — Consumer Discretionary
XLP — Consumer Staples
XLE — Energy
XLI — Industrials
XLB — Materials
XLU — Utilities
XLRE — Real Estate
XLC — Communication Services
Features:
Relative performance comparison in percentage terms
Clear color differentiation for each sector
Easy identification of outperforming and underperforming sectors
Useful for macro analysis, sector rotation strategies, and market trend confirmation
Designed for medium and long-term market analysis
This script helps traders and investors quickly identify:
Risk-on vs risk-off environments
Defensive vs growth leadership
Inflation-sensitive sectors
Momentum and sector rotation trends
Author: Edgar
Release Notes
4S&P 500 Sector Performance Comparison created by Edgar Simões.
This indicator compares the performance of all 11 S&P 500 Sector SPDR ETFs in a single normalized chart, making it easy to visualize sector rotation, market leadership, and relative strength across different market environments.
Included sectors:
XLK — Technology
XLF — Financials
XLV — Health Care
XLY — Consumer Discretionary
XLP — Consumer Staples
XLE — Energy
XLI — Industrials
XLB — Materials
XLU — Utilities
XLRE — Real Estate
XLC — Communication Services
Features:
Relative performance comparison in percentage terms
Clear color differentiation for each sector
Easy identification of outperforming and underperforming sectors
Useful for macro analysis, sector rotation strategies, and market trend confirmation
Designed for medium and long-term market analysis
This script helps traders and investors quickly identify:
Risk-on vs risk-off environments
Defensive vs growth leadership
Inflation-sensitive sectors
Momentum and sector rotation trends
Author: Edgar Simões
Release Notes
S&P 500 Sector Performance Comparison created by Edgar Simões.This indicator compares the performance of all 11 S&P 500 Sector SPDR ETFs in a single normalized chart, making it easy to visualize sector rotation, market leadership, and relative strength across different market environments.
Included sectors:
XLK — Technology
XLF — Financials
XLV — Health Care
XLY — Consumer Discretionary
XLP — Consumer Staples
XLE — Energy
XLI — Industrials
XLB — Materials
XLU — Utilities
XLRE — Real Estate
XLC — Communication Services
Features:
Relative performance comparison in percentage terms
Clear color differentiation for each sector
Easy identification of outperforming and underperforming sectors
Useful for macro analysis, sector rotation strategies, and market trend confirmation
Designed for medium and long-term market analysis
This script helps traders and investors quickly identify:
Risk-on vs risk-off environments
Defensive vs growth leadership
Inflation-sensitive sectors
Momentum and sector rotation trends
Author: Edgar Simões
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.