Purchase 10 best performers in an index over a one week period?
Author: paulkirz
Creation Date: 7/23/2018 5:48 PM
profile picture

paulkirz

#1
Does anyone know how to program wealth lab pro to back test purchase of the 10 best performing stocks in the S&P 500 index over a one week period? At the beginning of each week the previous purchases would be sold and the top 10 performing stocks for the previous week would be purchased.

Thank you!

Paul K
profile picture

Eugene

#2
This technique is what we call a rotation system. We've got one downloadable strategy which is very close but requires a little manual tweak. Here's the plan:

1. Get Weak-stock rotation (follow "Instructions for Script Download"). The strategy purchases the worst performing stocks i.e. N stocks that have the lowest ROC (rate of change) value.

2. As the Wiki FAQ suggests ("I need other rotation rule other than the built-in RSI"), you have to append one line of code approximately in the middle:

CODE:
Please log in to see this code.


This will effectively modify the sorting order i.e. make the code purchase the X best performers and not the worst.

3. Update your S&P 500 DataSet. Switch the chart's Scale to Weekly. Drag the "n Symbols" slider at the bottom left to 10. You're all set.
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).