Need help with IB TWSDDE.xls

Discussion in 'App Development' started by steve.k.tang, Nov 10, 2013.

  1. Hi All,

    I need help attaching a MOC order to a Parent ID and trailing stop order. At the moment I have a STP buy order with Trailing Stop attached. I want to be able to close the postion at the end of the day if the Trail is no triggered at the end of the day to avoid holding the position over night. Should I be assigning a OCA group to the Trailing sell with the MOC sell order? Anyone able to provide the brief code?

    Many thanks,
    Steve
     
  2. For those interested, the MOC order type is not available for all asset classes. Instead you can use GAT (Good After Time). Hope it helps. PM me if u want to exchange trading ideas :)
     
  3. Bob111

    Bob111