Find the best performing stocks by price
Author: Carloseta
Creation Date: 5/4/2010 10:11 AM
profile picture

Carloseta

#1
Am I peeking?

CODE:
Please log in to see this code.
profile picture

Eugene

#2
Of course, it makes little sense assigning a priority to past positions when creating a new one - the "worst case priority" block should be moved out of the trading loop.

Also, I cleared the rule wizard's unneccessary verbosity when dealing with multi-position systems:
CODE:
Please log in to see this code.
profile picture

Carloseta

#3
I'm trying to look back 119 bars and find the best performing stocks by price, Then buy them with the priority being the highest return for that period. What is it actually doing?
profile picture

Eugene

#4
Oh, didn't notice you've removed the minus sign from the familiar "worst case priority" pattern. Whatever the code was doing, it was in la la land.

I've corrected my version above so that it actually buys with "the priority being the highest return for that period" - using the ROC indicator.
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).