here is what I do:
I have a strategy which has up to 3 targets and one stop which is updated on price or quantity change everytime one of the targets getting hit.
The targets and the stop order are related to the entry order.
My order handling presets are as follow:
Entries per direction 3,
Entry handling: UniqueEntries
Stop& target submission: PerEntryExecution
and here is the problem:
If I'm using a small position size for the overall position lets say 4 contracts and for each target 1 contracts (I have one remaining position open) everything works fine, means that if the target 1 gets hit all the other target orders and the stop order are still active.
But if I'm using a position size lets say 400000 (forex spot for IB, 4 lots) and for each target position 100000 (1 lot), then, if the target 1 gets hit all the other targets will be canceled. (see the print out below...)
I have no idea about that problem...any idea?
10.02.2010 07:49:05 Cancelled pending exit order, since associated position is closed: Order='be826073fb9b4147bdbed6f84ede16ed/Replay101' Name='T3' State=Working Instrument='$EURJPY' Action=Sell Limit price=123,76 Stop price=0 Quantity=0,1M Strategy='BWTPrecisionAutoTrader' Type=Limit Tif=Gtc Oco='' Filled=0 Fill price=0 Token='be826073fb9b4147bdbed6f84ede16ed' Gtd='01.12.2099 00:00:00'
--> Order: T3 is updated. Reason: PendingCancel
--> Order: T3 is updated. Reason: Cancelled
10.02.2010 07:49:05 Cancelled pending exit order, since associated position is closed: Order='959d41b5398741e4bf0230526ca9e5d3/Replay101' Name='T2' State=Working Instrument='$EURJPY' Action=Sell Limit price=123,66 Stop price=0 Quantity=0,1M Strategy='BWTPrecisionAutoTrader' Type=Limit Tif=Gtc Oco='' Filled=0 Fill price=0 Token='959d41b5398741e4bf0230526ca9e5d3' Gtd='01.12.2099 00:00:00'
--> Order: T2 is updated. Reason: PendingCancel
--> Order: T2 is updated. Reason: Cancelled
10.02.2010 07:49:05 Cancelled pending exit order, since associated position is closed: Order='e4255c1ac7d54c5e886ed787fc97d010/Replay101' Name='SL' State=Accepted Instrument='$EURJPY' Action=Sell Limit price=0 Stop price=123,16 Quantity=0,4M Strategy='BWTPrecisionAutoTrader' Type=Stop Tif=Gtc Oco='' Filled=0 Fill price=0 Token='e4255c1ac7d54c5e886ed787fc97d010' Gtd='01.12.2099 00:00:00'
--> Order: SL is updated. Reason: PendingCancel
--> Order: SL is updated. Reason: Cancelled
--> Order: T1 is updated. Reason: Filled
--> Adjusting stop
--> stop adjusted
10.02.2010 07:49:05 Entered internal PlaceOrder() method at 10.02.2010 07:49:05: Action=Sell OrderType=Stop Quantity=0,3M LimitPrice=0 StopPrice=123,16 SignalName='SL' FromEntrySignal='ENTRY'
--> Order: SL is updated. Reason: PendingSubmit
--> Order: SL is updated. Reason: Accepted
I have no manuall cancelation in this process, and please remark if the position size is small everthing works fine!!!!
Many thanks for your help!
Comment