I have some code in which I enter a position using a bracket order.  I am 
interested in reducing the size of the profit target (i.e. limit) side of 
the exiting bracket, after the position is entered, so that I take a partial 
profit.  When I do that, I want the stop side of the order updated so that it 
will only stop out the remaining share quanitity and I don't get overfilled on 
the stop.

(The reason I do this is because I have the stop price updated on successive 
itterations of the code, so that the stop order is effectively a trailing 
stop.  
I want part of the positon to be exited only when the trailing stop is hit, not 
when the profit target is hit, in hopes of improving on the profit target.)

As I understand it, the exit orders of the original bracket order are 
effectively a special type of OCA order group, and bracket order parameters and 
OCA order parameters are not to be mixed in the same order entry (i.e. in the 
ibc.PlaceOrder string).  Also, as I understand it, the order size must match 
for 
the different parts of a bracket order.  



Is it possible to convert an exit order pair, that was placed as part of 
a bracket order, to an OCA order group using ibc.ModifyOrder?  Or will that 
cause a conflict somehow?

Thanks.

GB

Reply via email to