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 open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.