[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] IBController related



PureBytes Links

Trading Reference Links

I'm using IBController (1.1.1). I use the following code.

ibc = GetTradingInterface("IB");
if( ibc.IsConnected() )
{
parentID = ibc.PlaceOrder("PANC", "BUY", 300, "STPLMT", 6.97,
6.9,"GTC", False);
ibc.PlaceOrder("PANC", "SELL", 100, "LMT", 7.11, 0, "GTC", False,
100, "MyGroup", parentID );
ibc.PlaceOrder("PANC", "SELL", 100, "STP", 6.5, 6.5, "GTC", False,
100, "MyGroup", parentID );
}

I don't get "MyGroup" as OCA group value. Also, I tried to
ibc.ModifyOrder to change OCA group for the bracketed order but it
didn't change OCA attribute. Is it a API limitation or I'm missing
something?

My main issue is that I would like to attach 2 set of brackted order
having different OCA group for each set.



Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.13.27/517 - Release Date: 11/3/2006