I've got an ATM strategy for a 2 position trade, each with a separate stop. One of the two has a Target1 and a Stop1 (a fixed target position if you will) and the second has no target, only to exit at it's Stop2 which will trail once the fixed target position hits its Target1. When that Position1 hits a certain point relative to its target, I will move its stop up or down manually for money management.
If that fixed position happens to hit target while I am in the process of moving its stop (i have clicked it and am in the process of positioning it but have not clicked to place it at its new level), I will get an error regarding not being able to set the stop and the remaining positions Stop2 (that I was NOT modifying) then gets cancelled. This leaves me with that remaining position (since the first one hit target) with no target (by design) and no stop (because it got cancelled in the error sequence). I then have to set ATM to none and manually create an exit stop. Since it was manually created, it will also not trail as the ATM one would have if it did not get cancelled out by the software issue.
Here is the log file entries for the sequence... Stop1 is the one that I had clicked and was in the process of changing when Target1 was filled.
Seems like a bug to me. No reason I should have lost my Stop2.
2022-03-03 06:48:39:523|1|32|Order='834869055/213725' Name='Target1' New state='Filled' Instrument='RTY 03-22' Action='Buy to cover' Limit price=2045.7 Stop price=0 Quantity=1 Type='Limit' Time in force=DAY Oco='617aec561038405f9ffc1938a44f7666' Filled=1 Fill price=2045.7 Error='No error' Native error=''
2022-03-03 06:48:39:524|1|8|Execution='585126153984' Instrument='RTY 03-22' Account='213725' Exchange=Globex Price=2045.7 Quantity=1 Market position=Long Operation=Operation_Add Order='834869055' Time='3/3/2022 6:48 AM'
2022-03-03 06:48:39:524|1|32|Order='834960824/213725' Name='Stop1' New state='Cancelled' Instrument='RTY 03-22' Action='Buy to cover' Limit price=0 Stop price=2050.1 Quantity=1 Type='Stop Market' Time in force=DAY Oco='617aec561038405f9ffc1938a44f7666' Filled=0 Fill price=0 Error='No error' Native error=''
2022-03-03 06:48:39:536|1|32|Order='834960824/213725' Name='Stop1' New state='Rejected' Instrument='RTY 03-22' Action='Buy to cover' Limit price=0 Stop price=2050.1 Quantity=1 Type='Stop Market' Time in force=DAY Oco='617aec561038405f9ffc1938a44f7666' Filled=0 Fill price=0 Error='Order rejected' Native error='The order was in a state that cannot be modified'
2022-03-03 06:48:39:538|0|32|213725, The order was in a state that cannot be modified affected Order: BuyToCover 1 StopMarket @ 2050.1
2022-03-03 06:48:39:539|1|32|Order='834960824/213725' Name='Stop1' New state='Cancelled' Instrument='RTY 03-22' Action='Buy to cover' Limit price=0 Stop price=2050.1 Quantity=1 Type='Stop Market' Time in force=DAY Oco='617aec561038405f9ffc1938a44f7666' Filled=0 Fill price=0 Error='No error' Native error=''
2022-03-03 06:48:39:563|1|32|Order='834869053/213725' Name='Stop2' New state='Cancel submitted' Instrument='RTY 03-22' Action='Buy to cover' Limit price=0 Stop price=2052.6 Quantity=1 Type='Stop Market' Time in force=DAY Oco='' Filled=0 Fill price=0 Error='No error' Native error=''
2022-03-03 06:48:39:584|1|64|Instrument='RTY 03-22' Account='213725' Average price=2048.1 Quantity=1 Market position=Short Operation=Update
2022-03-03 06:48:39:668|1|32|Order='834869053/213725' Name='Stop2' New state='Cancelled' Instrument='RTY 03-22' Action='Buy to cover' Limit price=0 Stop price=2052.6 Quantity=1 Type='Stop Market' Time in force=DAY Oco='' Filled=0 Fill price=0 Error='No error' Native error=''

Comment