Percent of stocks above 200d moving average
Author: jupiter
Creation Date: 12/1/2009 8:06 PM
profile picture

jupiter

#1
Hi,

StockCharts.com has an indicator called $SPXA200R (Percent of S&P 500 stocks above the 200 day moving average), as shown here: http://stockcharts.com/h-sc/ui?s=$SPXA200R&p=D&yr=2&mn=0&dy=0&id=p82076188361

Is there a way to do something similar to this in WL for the Wealth-Lab 100 list of stocks (or any other watch list)?
profile picture

Eugene

#2
It was possible in WL4 and is possible in WL5 -- if you content search the forum, you shall find the code:

Number of stocks above their moving average for N periods

The code simply counts the number of stocks. Since you need the percentage, adding the following will do the job:
CODE:
Please log in to see this code.
profile picture

jupiter

#3
Thanks Eugene.

Tom
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).