|
Alexander Horn
2016-12-02 22:52:15
|
|
QS, can you give me an example of how to create an order with an attached OCA / Child order?
I was trying below, but obviously not right:
_TradingOrder Order = Orders.CloseMarketOrder(-1,5);
Order.AddLinkedOrder(false,FutureSym,Contracts ,Order);
Order.AddLinkedOrder(true,OptionSym,Contracts*10, Order);
Or do I have to submit first main order, and later catch it with Orders.GetPendingShortOrders and attach the child?
Also, would these orders in an ATS be submitted to IB? Or handled in QS?
|
|