I have been testing my strategy live and have noticed that it is moving my profitTarget orders by itself. Order management is using the managed approach and never is the profit target changed once placed. Here are the logs:
2023-09-25 19:40:22:631|1|32|Order='c9046b6bfebc4113842e60185dd40891/SimLongSim' Name='Supply Entry 1989' New state='Partially filled' Instrument='NQ DEC23' Action='Sell short' Limit price=14861.75 Stop price=0 Quantity=3 Type='Limit' Time in force=GTC Oco='' Filled=1 Fill price=14861.75 Error='No error' Native error='' 2023-09-25 19:40:22:632|1|8|Execution='8cd1a360c91540b5a32a4d7768f0c8ff' Instrument='NQ DEC23' Account='SimLongSim' Exchange=Default Price=14861.75 Quantity=1 Market position=Short Operation=Operation_Add Order='c9046b6bfebc4113842e60185dd40891' Time='9/25/2023 7:40 PM' 2023-09-25 19:40:22:632|1|16|NinjaScript strategy 'TestStrategy/307116401' submitting order 2023-09-25 19:40:22:632|1|32|Order='eddbf2ffb726444d8e2dfb070e5542dc/SimLongSim' Name='Stop loss' New state='Trigger pending' Instrument='NQ DEC23' Action='Buy to cover' Limit price=0 Stop price=14869.25 Quantity=1 Type='Stop Market' Time in force=GTC Oco='8cd1a360c91540b5a32a4d7768f0c8ff' Filled=0 Fill price=0 Error='No error' Native error='' 2023-09-25 19:40:22:632|1|16|NinjaScript strategy 'TestStrategy/307116401' submitting order 2023-09-25 19:40:22:650|1|32|Order='c978a4731c1e49e58fdc2469b413ea61/SimLongSim' Name='Profit target' New state='Submitted' Instrument='NQ DEC23' Action='Buy to cover' Limit price=0 Stop price=14399.75 Quantity=1 Type='MIT' Time in force=GTC Oco='8cd1a360c91540b5a32a4d7768f0c8ff' Filled=0 Fill price=0 Error='No error' Native error='' 2023-09-25 19:40:22:650|1|64|Instrument='NQ DEC23' Account='SimLongSim' Average price=14861.75 Quantity=1 Market position=Short Operation=Operation_Add 2023-09-25 19:40:22:756|1|32|Order='c978a4731c1e49e58fdc2469b413ea61/SimLongSim' Name='Profit target' New state='Accepted' Instrument='NQ DEC23' Action='Buy to cover' Limit price=0 Stop price=14399.75 Quantity=1 Type='MIT' Time in force=GTC Oco='8cd1a360c91540b5a32a4d7768f0c8ff' Filled=0 Fill price=0 Error='No error' Native error='' 2023-09-25 19:40:32:244|1|32|Order='c9046b6bfebc4113842e60185dd40891/SimLongSim' Name='Supply Entry 1989' New state='Filled' Instrument='NQ DEC23' Action='Sell short' Limit price=14861.75 Stop price=0 Quantity=3 Type='Limit' Time in force=GTC Oco='' Filled=3 Fill price=14861.75 Error='No error' Native error='' 2023-09-25 19:40:32:244|1|8|Execution='ae1b3784253b4fa4b61e54b4d82cc6b3' Instrument='NQ DEC23' Account='SimLongSim' Exchange=Default Price=14861.75 Quantity=2 Market position=Short Operation=Operation_Add Order='c9046b6bfebc4113842e60185dd40891' Time='9/25/2023 7:40 PM' 2023-09-25 19:40:32:244|1|16|NinjaScript strategy 'TestStrategy/307116401' submitting order 2023-09-25 19:40:32:244|1|32|Order='541971a0f553412ca6852949f1794f90/SimLongSim' Name='Stop loss' New state='Trigger pending' Instrument='NQ DEC23' Action='Buy to cover' Limit price=0 Stop price=14869.25 Quantity=2 Type='Stop Market' Time in force=GTC Oco='ae1b3784253b4fa4b61e54b4d82cc6b3' Filled=0 Fill price=0 Error='No error' Native error='' 2023-09-25 19:40:32:244|1|16|NinjaScript strategy 'TestStrategy/307116401' submitting order 2023-09-25 19:40:32:257|1|32|Order='b110d771b22a460985752965098c5725/SimLongSim' Name='Profit target' New state='Submitted' Instrument='NQ DEC23' Action='Buy to cover' Limit price=0 Stop price=14399.75 Quantity=2 Type='MIT' Time in force=GTC Oco='ae1b3784253b4fa4b61e54b4d82cc6b3' Filled=0 Fill price=0 Error='No error' Native error='' 2023-09-25 19:40:32:257|1|64|Instrument='NQ DEC23' Account='SimLongSim' Average price=14861.75 Quantity=3 Market position=Short Operation=Update 2023-09-25 19:40:32:370|1|32|Order='b110d771b22a460985752965098c5725/SimLongSim' Name='Profit target' New state='Accepted' Instrument='NQ DEC23' Action='Buy to cover' Limit price=0 Stop price=14399.75 Quantity=2 Type='MIT' Time in force=GTC Oco='ae1b3784253b4fa4b61e54b4d82cc6b3' Filled=0 Fill price=0 Error='No error' Native error='' // Although the order 'Profit target' was set to 14399.75 in this short, it somehow moved itself and updated to 14860 (Seen below). 2023-09-25 20:00:00:296|1|32|Order='c978a4731c1e49e58fdc2469b413ea61/SimLongSim' Name='Profit target' New state='Working' Instrument='NQ DEC23' Action='Buy to cover' Limit price=0 Stop price=14399.75 Quantity=1 Type='MIT' Time in force=GTC Oco='8cd1a360c91540b5a32a4d7768f0c8ff' Filled=0 Fill price=0 Error='No error' Native error='' 2023-09-25 20:00:00:296|1|32|Order='b110d771b22a460985752965098c5725/SimLongSim' Name='Profit target' New state='Working' Instrument='NQ DEC23' Action='Buy to cover' Limit price=0 Stop price=14399.75 Quantity=2 Type='MIT' Time in force=GTC Oco='ae1b3784253b4fa4b61e54b4d82cc6b3' Filled=0 Fill price=0 Error='No error' Native error='' 2023-09-25 20:00:00:310|1|32|Order='c978a4731c1e49e58fdc2469b413ea61/SimLongSim' Name='Profit target' New state='Filled' Instrument='NQ DEC23' Action='Buy to cover' Limit price=0 Stop price=14399.75 Quantity=1 Type='MIT' Time in force=GTC Oco='8cd1a360c91540b5a32a4d7768f0c8ff' Filled=1 Fill price=14860 Error='No error' Native error='' 2023-09-25 20:00:00:311|1|32|Order='eddbf2ffb726444d8e2dfb070e5542dc/SimLongSim' Name='Stop loss' New state='Cancel submitted' Instrument='NQ DEC23' Action='Buy to cover' Limit price=0 Stop price=14869.25 Quantity=1 Type='Stop Market' Time in force=GTC Oco='8cd1a360c91540b5a32a4d7768f0c8ff' Filled=0 Fill price=0 Error='No error' Native error='' 2023-09-25 20:00:00:311|1|32|Order='eddbf2ffb726444d8e2dfb070e5542dc/SimLongSim' Name='Stop loss' New state='Cancelled' Instrument='NQ DEC23' Action='Buy to cover' Limit price=0 Stop price=14869.25 Quantity=1 Type='Stop Market' Time in force=GTC Oco='8cd1a360c91540b5a32a4d7768f0c8ff' Filled=0 Fill price=0 Error='No error' Native error='' 2023-09-25 20:00:00:311|1|8|Execution='54260f0901b14be886b4f68bdfd363ef' Instrument='NQ DEC23' Account='SimLongSim' Exchange=Default Price=14860 Quantity=1 Market position=Long Operation=Operation_Add Order='c978a4731c1e49e58fdc2469b413ea61' Time='9/25/2023 8:00 PM' 2023-09-25 20:00:00:311|1|64|Instrument='NQ DEC23' Account='SimLongSim' Average price=14861.75 Quantity=2 Market position=Short Operation=Update 2023-09-25 20:00:00:345|1|32|Order='b110d771b22a460985752965098c5725/SimLongSim' Name='Profit target' New state='Filled' Instrument='NQ DEC23' Action='Buy to cover' Limit price=0 Stop price=14399.75 Quantity=2 Type='MIT' Time in force=GTC Oco='ae1b3784253b4fa4b61e54b4d82cc6b3' Filled=2 Fill price=14860 Error='No error' Native error='' 2023-09-25 20:00:00:345|1|32|Order='541971a0f553412ca6852949f1794f90/SimLongSim' Name='Stop loss' New state='Cancel submitted' Instrument='NQ DEC23' Action='Buy to cover' Limit price=0 Stop price=14869.25 Quantity=2 Type='Stop Market' Time in force=GTC Oco='ae1b3784253b4fa4b61e54b4d82cc6b3' Filled=0 Fill price=0 Error='No error' Native error='' 2023-09-25 20:00:00:345|1|32|Order='541971a0f553412ca6852949f1794f90/SimLongSim' Name='Stop loss' New state='Cancelled' Instrument='NQ DEC23' Action='Buy to cover' Limit price=0 Stop price=14869.25 Quantity=2 Type='Stop Market' Time in force=GTC Oco='ae1b3784253b4fa4b61e54b4d82cc6b3' Filled=0 Fill price=0 Error='No error' Native error='' 2023-09-25 20:00:00:345|1|8|Execution='3e519b1acee4441b8277ad07e75e4130' Instrument='NQ DEC23' Account='SimLongSim' Exchange=Default Price=14860 Quantity=2 Market position=Long Operation=Operation_Add Order='b110d771b22a460985752965098c5725' Time='9/25/2023 8:00 PM' 2023-09-25 20:00:00:345|1|64|Instrument='NQ DEC23' Account='SimLongSim' Average price=0 Quantity=0 Market position=Flat Operation=Remove

Comment