TradingView
vtrader321
23 juil. 2021 00:55

Sector Performance 

Apple Inc.NASDAQ

Description

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.

Notes de version

Changed transparency settings to better reflect relative sector performance

Notes de version

Added different text size and table position options

Notes de version

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

Notes de version

Text color turns white for inside day (or other selected timeframe) and yellow for outside day. Colors can be changed from settings.

Notes de version

Upgrade to version 5 of pine script
Commentaires
ssgill511
Awesome!
vtrader321
@ssgill511, oh wow. Thank you !!
cmbgroup123
Really loving this indicator. Is there any chance to have a selection that would allow the calculation to start from todays open vs yesterdays close. Currently all calculations are based on where price is trading compared to yesterdays close. I would like to see where the sectors are trading compared to where they opened that day.
StratDamon
You’re dope for this update. Thank you!
vtrader321
@TwoWeekNotice, Appreciate your kind words
Darth_Buddha
Amazing.. Really sharp
jbaviator
Nice script. I made some adjustments so it could appear in a separate pane horizontally outside of the price pane:

VanScaleN
Great tool. Really like being able to see how the sectors are behaving without having to change screens. Thank you.
Any chance it is easy to add the current price of the sector along with the percentage up or down? Thanks a ton.
vtrader321
@RickyBo, will add that when I get a chance
VanScaleN
@vtrader321, Appreciate it. Thank you.
Plus