Hi Guys,

I get following error when I try to place a bracket order using IB
Controler. Help please.

//--------------------------------------
// this one succeed
pid = ibc.PlaceOrder(YM, "SELL", 1, "MKT", 0, 0, "Day", False );

// this one failed, it says:
// COM method/function 'PlaceOrder' call failed.
ibc.PlaceOrder(YM, "BUY", 1, "LMT", L-10, 0, "GTC", False, 100, "", pid);

// this one failed too, same error message
ibc.PlaceOrder(YM, "BUY", 1, "STP", 0, L+5, "GTC", True, 100, "",
pid);    

//--------------------------------------

Thank you in advance.
Eric

Reply via email to