OPEN-SOURCE SCRIPT
Updated Sector Performance

This indicator shows real-time current day performance for 11 ETFs that divide the S&P 500 into eleven sector index funds. The list of different sector ETFs this indicator tracks is as follows -
1. SPY - S&P 500 Index
2. XLC - Communication Services
3. XLY - Consumer Discretionary
4. XLP - Consumer Staples
5. XLE - Energy
6. XLF - Financials
7. XLV - Health Care
8. XLI - Industrials
9. XLB - Materials
10. XLRE - Real Estate
11. XLF - Technology
12. XLU - Utilities
Acknowledgment - This indicator is adapted using the source code from another excellent performance indicator (tradingview.com/script/BmvtK3GH-Performance-Table/). Thanks to BeeHolder (tradingview.com/u/BeeHolder/) for generously sharing the source code.
1. SPY - S&P 500 Index
2. XLC - Communication Services
3. XLY - Consumer Discretionary
4. XLP - Consumer Staples
5. XLE - Energy
6. XLF - Financials
7. XLV - Health Care
8. XLI - Industrials
9. XLB - Materials
10. XLRE - Real Estate
11. XLF - Technology
12. XLU - Utilities
Acknowledgment - This indicator is adapted using the source code from another excellent performance indicator (tradingview.com/script/BmvtK3GH-Performance-Table/). Thanks to BeeHolder (tradingview.com/u/BeeHolder/) for generously sharing the source code.
Release Notes
Changed transparency settings to better reflect relative sector performanceRelease Notes
Added different text size and table position optionsRelease Notes
Added few new features- Added 2 default symbols - VXX & SMH
- Ability to replace the default symbols with the ones you want
- Ability to choose a timeframe from 1 minute to 1 year. Default is 1 day
- Ability to position the grid vertically. Default is horizontal
Release Notes
Text color turns white for inside day (or other selected timeframe) and yellow for outside day. Colors can be changed from settings.Release Notes
Upgrade to version 5 of pine scriptOpen-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.