开云体育

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

Re: conditional order conditioned on execution of buy order only?


 

I assume your BUY and SELL orders are limit orders (or something similar). If entry prices are known in advance and far enough apart, maybe order conditioning with two conditions may work:
  • the ExecutionCondition you were trying
  • plus a PriceCondition that identifies that the BUY order triggered (Price < someValue)
  • combined with AND
Quantities for these orders would be independent in the sense that the conditioned order would try to execute its quantity even if the triggering order fills only partially.
?
Just a thought.
闯ü谤驳别苍
?
On Fri, Jan 10, 2025 at 06:31 AM, Neal Young wrote:

?
闯ü谤驳别苍,
?
Thank you for the suggestion. ?I tried it, but IBKR rejected it with the following message:
?
Order rejected - reason:Child must have the same contract as parent order., contract=None
?
In my case, the child order and the parent order are not for the same stock, so I need the child and parent orders to have different contracts.
?
I'd been using a hedge pair, which does allow that. ?It has the drawback that the displayed size of the child cannot be set at the time of creation, but I may be able to work around that.
?
-Neal

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