Screen for Top 3 stocks
Author: mgrech004
Creation Date: 6/6/2011 9:28 PM
profile picture

mgrech004

#1
I am essentially trying to build a simple screen that finds me the biggest losers from a list of stocks by comparing the open for the day with the previous close.
profile picture

Eugene

#2
Hi,

From the "Open Strategy" dialog, load any canned strategy from the "Symbol Rotation" folder. This is going to save a great deal of coding time since this is the design pattern for building strategies that work with "Top N" (or Bottom N) stocks.

1) See above.

2) Rotation strategies are backtested in Single Symbol mode.
profile picture

Cone

#3
First thing, read the Description so that you can work properly with a rotation script. Essentially, you should click on only one symbol in the DataSet to run the script.

Second, give us a better description of what you're trying to do so that we can give you the proper guidance. You may actually want to do something entirely different than "symbol rotation".
profile picture

Eugene

#4
Related link: FAQ | Strategies and WealthScript > Rotation strategies
profile picture

mgrech004

#5

I am essentially trying to build a simple screen that finds me the biggest losers from a list of stocks by comparing the open for the day with the previous close.
profile picture

Cone

#6
QUOTE:
I am essentially trying to build a simple screen that finds me the biggest losers from a list of stocks by comparing the open for the day with the previous close.
Please continue. What do you want to do with the losers after that? Be specific. Step by step.
profile picture

Cone

#7
As you said initially, this is just a screener, so that takes away a lot of the complexity of a Rotation-type script.

Okay, what's the ranking rule? i.e., what makes a loser a bigger loser?
profile picture

Cone

#8
Let's just assume that it's the Rate of change (%) over a specified period. You can change the indicator as you wish, where indicated in the script.

Instructions:
1. Paste, compile.
2. Update the DataSet
3. Click on one symbol in the DataSet to run the script.

CODE:
Please log in to see this code.
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).