Is it possible to create Buy At Limit on the Open orders?
Author: gfparker
Creation Date: 2/14/2018 4:22 AM
profile picture

gfparker

#1
I have used Buy Limit on the Open orders in my trading with Fidelity so I know Fidelity handles them. Essentially it is a Buy Limit order that is only in force on the open of a stock. This would seem to be a great way to get around the time it takes to get the open with GetSessionOpen method of gap trading.
profile picture

Eugene

#2
Wealth-Lab does not support LOO. To try to emulate this method in your strategy yourself you'd have to use GetSessionOpen and intraday data.
profile picture

Cone

#3
I think this method will work to emulate LOO... if it's not obvious, this one is for exits only ;)

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

Eugene

#4
Nice. Let's include it in Community Components.
profile picture

Cone

#5
Corrected the order of <= and >= for limit exits above.
profile picture

Cone

#6
While we're at it, let's finish this up with the entry too....

CODE:
Please log in to see this code.


Example usage in a bar loop...
CODE:
Please log in to see this code.
profile picture

Eugene

#7
Committed to C.Components for v2018.03. Thanks Robert.