Cone8
 ( 25.44% )
- ago
Currently when an order is replaced during automated trading, WL7 cancels it and then places the new order. This works fine, except in the context of changing bracketed/linked orders.

With TDA, for example, canceling a linked OCO orders cancels the link and when the orders are replaced, they are no longer linked resulting in a potential overfill condition, for which the broker automatically cancels the second order.

Wealth-Lab needs a native CancelReplace() method in the broker base class in order to use a broker's Cancel/Replace method (if supported).
5
901
6 Replies

Reply

Bookmark

Sort
Cone8
 ( 25.44% )
- ago
#1
The OCO case might actually be a bug. Wealth-Lab isn't replacing OCO orders using PlaceOcoTradePair().

Still, a native CancelReplace method for doing Cancel/Replace would be ideal :)
0
- ago
#2
I ran into that a lot too.

Thanks
0
Cone8
 ( 25.44% )
- ago
#3
Just fyi, Build 7 gets about halfway there. In the context of changing prices for OCO, Wealth-Lab now cancels the exiting OCO and replaces is with a new OCO. It's better, than losing the OCO altogether, but isn't ideal since:

1. The first OCO could have partially filled, and,
2. It's remotely possible that an order might have filled in the delay between the canceling and replacing the OCO. (Especially with TDA since it's very slow to activate new orders.)
0
Glitch8
 ( 11.81% )
- ago
#4
We've had native broker cancel/replace for a long time, is there anything more to this request or can we close it?
0
Glitch8
 ( 11.81% )
- ago
#5
Note: we'll implement it for IB and leave it open until that's completed.
0
Cone8
 ( 25.44% )
- ago
#6
Completed for IB Provider Build 38.
0

Reply

Bookmark

Sort