Number of stocks up a certain percentage over a period
Author: komara33
Creation Date: 11/14/2012 10:54 AM
profile picture

komara33

#1
I'm trying to create some scans for large indices that would return the number of stocks up a certain percentage over the prior day or quarter. I am just interested in a count of the stocks and not the actual individual trades. Can this be accomplished in WLP?
profile picture

Eugene

#2
Sure it's possible:
CODE:
Please log in to see this code.
profile picture

Eugene

#3
Another code-less solution:

1. Install MS123 IndexDefinitions library
2. Restart WLP
3. To your DataSet of choice, apply "Above Indicator's Value", click Next, select ROC. This is the daily change (quarterly etc. - depending on a chart's time frame). Now pick a period (should be 1) and the ROC threshold ("Indicator value") which is your "certain percentage over the prior day".
profile picture

komara33

#4
Eugene, Thanks for the quick response I appreciate it. I'll play around with the code. Kevin
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).