OPEN-SOURCE SCRIPT

NSE Advance/Decline Ratio

28
//version=5
indicator("NSE Advance/Decline Ratio", overlay=false)

advance = request.security("NSE:ADVANCE", "D", close)
decline = request.security("NSE:DECLINE", "D", close)

adr = advance / decline
plot(adr, title="Advance/Decline Ratio", color=color.blue)
hline(1, "Neutral", color=color.gray)

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.