OPEN-SOURCE SCRIPT
Updated

High Low Index SPY Top 40

6713
Modification from original code for "High Low Index" by © LonesomeTheBlue https://www.tradingview.com/script/WDAaGDMJ-High-Low-Index/
- Made modification specifically for Top 40 SPY holdings
- Added Market sentiment histogram (Total count green vs red), and SMA line for it
- Added arrows for peaks and dips on High Low Index and Market Sentiment MA

Idea behind this indicator is that SPY should follow the overall sentiment of its top holdings. I believe this bring great value to SPY traders.

Enjoy~!
Release Notes
corrected an offset error on the blue line.
Release Notes
fixed another offset error on the Record High Percent line
Release Notes
I am such a noob~ can't get an offset right. This should fix the scaling error. Everything should be scaled from -40 to 40.
Release Notes
updated SPY Top 40 list
old list is left in the code if anyone want to still use them.
Release Notes
Updated with option for Top 10, 20, 30
Updated with option to remove exchange from ticker on table

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.