Hi,
I am trying to submit a series of bracket orders to IB using this kind
of code:
parentID = ibc.PlaceOrder("MSFT", "BUY", 1000, "LMT", 27, 0, "GTC",
False );
ibc.PlaceOrder("MSFT", "SELL", 1000, "LMT", 28, 0, "GTC", False, 100,
"", parentID );
ibc.PlaceOrder("MSFT", "SELL", 1000, "STP", 26, 26, "GTC", True, 100,
"", parentID );
I loop through a set of symbols and execute the above for each
one(using a trade function), but for some symbols orders are not
submitted and the parent ID is not generated( the 3 orders appears on
the API page,but are not submitted, and the stop profit/loss orders
have no OCA field).
In other cases it works as expected.
What could be the cause?
Thank
Ly