OPEN-SOURCE SCRIPT
Sector ETF Performance

Description:
This indicator tracks the percentage performance of all 11 S&P 500 sector ETFs from the first visible bar on your chart, allowing you to quickly compare sector rotation and relative strength over any time period.
Sectors included:
XLK · Technology
XLF · Financials
XLV · Health Care
XLE · Energy
XLI · Industrials
XLP · Consumer Staples
XLY · Consumer Discretionary
XLU · Utilities
XLRE · Real Estate
XLB · Materials
XLC · Communication Services
The S&P 500 (SPY) is plotted in white as a benchmark reference line. Each line is labeled at the right edge with the ticker, sector name, and current percentage gain/loss.
How to use: Simply adjust the visible date range by dragging the left edge of the chart — all lines will automatically recalculate from that starting point.
This indicator tracks the percentage performance of all 11 S&P 500 sector ETFs from the first visible bar on your chart, allowing you to quickly compare sector rotation and relative strength over any time period.
Sectors included:
XLK · Technology
XLF · Financials
XLV · Health Care
XLE · Energy
XLI · Industrials
XLP · Consumer Staples
XLY · Consumer Discretionary
XLU · Utilities
XLRE · Real Estate
XLB · Materials
XLC · Communication Services
The S&P 500 (SPY) is plotted in white as a benchmark reference line. Each line is labeled at the right edge with the ticker, sector name, and current percentage gain/loss.
How to use: Simply adjust the visible date range by dragging the left edge of the chart — all lines will automatically recalculate from that starting point.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.