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.
Size:
Color:
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.
Size:
Color:
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.
Size:
Color:
Nice. Let's include it in Community Components.
Size:
Color:
Corrected the order of <= and >= for limit exits above.
Size:
Color:
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.
Size:
Color:
Committed to C.Components for v2018.03. Thanks Robert.
Size:
Color:
Community Components v2018.03 with EnterAtLOO and ExitLOO methods is out. Anyone interested please update the extension.
Size:
Color: