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).
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).
Rename
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 :)
Still, a native CancelReplace method for doing Cancel/Replace would be ideal :)
I ran into that a lot too.
Thanks
Thanks
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.)
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.)
We've had native broker cancel/replace for a long time, is there anything more to this request or can we close it?
Note: we'll implement it for IB and leave it open until that's completed.
Completed for IB Provider Build 38.
Your Response
Post
Edit Post
Login is required