开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Re: Allow OCA functionality on conditional cancellations


 

I sometime submit OCA groups with, for example, multiple profit targets (each profit target trying to close the entire position); for a long position, a higher profit target at first, and if that first profit target is not met, then the order expires, and another, lower profit target order becomes active (subsequent profit targets have a good after equal to a previous order's good till). I wouldn't want the entire OCA group to be cancelled when the first, higher profit target's good till time is reached.

Jimmy

On Fri, Sep 7, 2018 at 6:55 PM Orionn via Groups.Io <psmiranda=[email protected]> wrote:
Currently, OCA orders are only canceled if an order in the OCA group is either manually canceled or filled. If an OCA order is canceled by a good-til-date condition or by a conditional cancel price condition then the other orders in the same OCA group are not canceled. I find this logic surprising and, in my opinion, flawed. I would like to see orders in the same OCA group be canceled if another order in the same OCA group is canceled due to a good-til-date condition or a conditional cancel price condition. This issue is not API specific as orders generated in TWS also show this behavior.

In case anyone else would like the OCA functionality improved, you may vote and comment at the following New Features Poll entry:


Thank you.
--




Join [email protected] to automatically receive all group messages.