Trade a profit target or exit at open
Author: rmccall
Creation Date: 11/17/2010 1:05 PM
profile picture

rmccall

#1
Need help with this simple strategy...

Only 1 position open at a time.
Buy at the open.
Sell if profit target % is acheived.

IF not sold, then sell at open next day and buy new position at the same time.

Want to optimize on the % target.
profile picture

rmccall

#2
Here is the code I have been trying to make work correctly, but I'm not even close.

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

Eugene

#3
Why would you buy something immediately after selling it? Makes zero sense to me.
profile picture

rmccall

#4
Hopefully, I am not that stupid, Well maybe I am...
But I would select the timing to reenter the buy based on another model. If I can get this one to work right then I can combine the 2 models.
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).