Bracket Orders

Discussion in 'Interactive Brokers' started by rmaskell, Mar 1, 2021.

  1. rmaskell

    rmaskell

    Does anyone know if it is possible to put this series of bracket orders into IB so that if the Buystop is triggered the Sellstop is cancelled and vice-versa?

    Example

    Current price is 100

    BuyStop 105 (parent)
    Take Profit 120 (child)
    Trailing Stop 5 (child)

    Sell Stop 95 (parent)
    Take Profit 80 (child)
    Trailing Stop (child)

    So if one parent order got triggered the other parent order and it's child(s) would be cancelled?

    Many thanks
     
  2. You have to add the column 'OCA group' (One cancels all) to the layout. After you created both parent orders, you type some unique group ID like "555999" into the OCA group fields of the parent orders – of course the same ID für both orders. When one gets executed, the other gets cancelled. (The attached bracket orders work the same way, but the corresponding OCA group isn't shown in the default layout.)
     
    guru likes this.
  3. rmaskell

    rmaskell

    sculptor66 likes this.