Tom1trader

ADD for SPX intraday (NYSE Adv-Decl) -Tom1trader

This is the NYSE Advancers - decliners which the SPX pretty much follows. You can chart it like any index (ADD -NYSE $ADV MINUS $DECL) but I find it more useful in a separate panel with colors for direction.

The level gives an idea of days move (example: plus or minus 500 is not much movement through the session) but I follow the direction as when more stocks advance (green) or decline (red) the index tends to track it pretty closely.

On SPX, SPY and correlateds - very useful for intra-day trading (Scalping or 0DTE option trades) but not for higher time frames at all. If you chart the ADD in a chart and compare 5 minute to daily you will see what I mean.

I left it at 5 minutes timeframe which displays well on any intraday chart. You can change it by changing the "5" in the security function on line 13 to what you want ("1" 1 minute, "15" 15 minutes) or change it to timeframe.period (no quotes) so that it will follow the timeframe of the current chart. I like 5 min as it displays better on higher timeframes i.e. 15 min. or hour.
A simple moving average with a length of 10 is added to help gauge momemtum.

Hope this helps with trading or scripting ideas, questions or feed back welcome. Keep Smiling.

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

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.

Want to use this script on a chart?