OPEN-SOURCE SCRIPT

Intraday Super Sectors v2.0

已更新
This indicator plots the two 'Super Sectors' (Cyclical and Defensive) showing intraday change from open

.

For reference:

Defensive Sectors:
XLE Energy (not always considered a true defensive sector, but I've thrown it in here for balance)
XLP Consumer Staples
XLU Utilities
XLV Health Care

Cyclical Sectors:
XLB Materials
XLC Communication Services
XLF Financials
XLI Industrials
XLK Information Technology
XLRE Real Estate
XLY Consumer Discretionary

Sector data retrieved from finance.yahoo.com/quote/SPY/holdings/ on May 1, 2022

You're welcome to update the sector weightings from time to time. Don't worry about making it exactly 100% - the script automatically compensates and dynamically adjusts.

.

Outside of the cash session, you won't see anything (lines, clouds, %change etc.) which is perfectly normal. If you want to check to see if it really works, the 'replay' function might help!

.
.
.

* originally motivated by Cody to finish what I'd started, and feedback from TT and MDSS groups to 'always do better' (thanks guys!)
版本注释
Added option to turn off numerical display of all the individual sectors - helpful if you're using this on a phone!
版本注释
Minor update (bugfix?) to allow script to work if SPY is selected (either RTH or Extended)
sentiment

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明