OPEN-SOURCE SCRIPT

ADD 2

This is a modification to the original ADD script by Tom1trader

tradingview.com/v/gjR35HwQ/

I added the option to choose the timeframe, moving average type and length.

Note from the original script:

"This is the NYSE Advancers - decliners which the SPX pretty much follows. You can chart it like any index (ADD -NYSE AADV MINUS DDECL) 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 correlates - 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."
ADDExponential Moving Average (EMA)Moving AveragesSimple Moving Average (SMA)spy500

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer