OPEN-SOURCE SCRIPT
Updated Market breadth Percentage of stocks above MA of various indexes

Percentage of stock above moving average is a common market breadth indicator. This script can show multiple lines of percentage of stock above different moving average (5,20,50,100,150,200) of different US indexes.
Release Notes
1. Add Russell 10002. Add automatic switching function which will automicatically change the indicator's lines according to the relevant index symbols of the main chart. Users can turn off this function for other symbols or their own need.
Release Notes
add explanation within script and minor refinement of the script.Release Notes
improvement/clarification of wordings on the setting interface.Release Notes
Update ticker name for NQ100 and convert to pine version 4 to comply with the Tradingview. Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.