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.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.