I'm getting this from the log and trace you provided, that you produced on your end.
From the log you provided:
2024-05-13 11:33:46:952|1|32|Order='183957821/[redacted]' Name='Stop loss' New state='Change submitted' Instrument='NQ JUN24' Action='Sell' Limit price=0 Stop price=18277 Quantity=1 Type='Stop Market' Time in force=GTC Oco='NT-00636-363' Filled=0 Fill price=0 Error='No error' Native error=''
2024-05-13 11:33:47:016|1|32|Order='183957821/[redacted]' Name='Stop loss' New state='Accepted' Instrument='NQ JUN24' Action='Sell' Limit price=0 Stop price=18277 Quantity=1 Type='Stop Market' Time in force=GTC Oco='NT-00636-363' Filled=0 Fill price=0 Error='No error' Native error=''
2024-05-13 11:33:47:040|1|32|Order='183957821/[redacted]' Name='Stop loss' New state='Change submitted' Instrument='NQ JUN24' Action='Sell' Limit price=0 Stop price=18277.25 Quantity=1 Type='Stop Market' Time in force=GTC Oco='NT-00636-363' Filled=0 Fill price=0 Error='No error' Native error=''
2024-05-13 11:33:47:098|1|32|Order='183957821/[redacted]' Name='Stop loss' New state='Accepted' Instrument='NQ JUN24' Action='Sell' Limit price=0 Stop price=18277.25 Quantity=1 Type='Stop Market' Time in force=GTC Oco='NT-00636-363' Filled=0 Fill price=0 Error='No error' Native error=''
2024-05-13 11:33:47:201|1|32|Order='183957821/[redacted]' Name='Stop loss' New state='Change submitted' Instrument='NQ JUN24' Action='Sell' Limit price=0 Stop price=18277.5 Quantity=1 Type='Stop Market' Time in force=GTC Oco='NT-00636-363' Filled=0 Fill price=0 Error='No error' Native error=''
2024-05-13 11:33:47:263|1|32|Order='183957821/[redacted]' Name='Stop loss' New state='Accepted' Instrument='NQ JUN24' Action='Sell' Limit price=0 Stop price=18277.5 Quantity=1 Type='Stop Market' Time in force=GTC Oco='NT-00636-363' Filled=0 Fill price=0 Error='No error' Native error=''
2024-05-13 11:33:47:263|1|32|Order='183957821/[redacted]' Name='Stop loss' New state='Change submitted' Instrument='NQ JUN24' Action='Sell' Limit price=0 Stop price=18277.75 Quantity=1 Type='Stop Market' Time in force=GTC Oco='NT-00636-363' Filled=0 Fill price=0 Error='No error' Native error=''
2024-05-13 11:33:47:326|1|32|Order='183957821/[redacted]' Name='Stop loss' New state='Accepted' Instrument='NQ JUN24' Action='Sell' Limit price=0 Stop price=18277.75 Quantity=1 Type='Stop Market' Time in force=GTC Oco='NT-00636-363' Filled=0 Fill price=0 Error='No error' Native error=''
2024-05-13 11:33:47:915|1|32|Order='183957821/[redacted]' Name='Stop loss' New state='Change submitted' Instrument='NQ JUN24' Action='Sell' Limit price=0 Stop price=18278 Quantity=1 Type='Stop Market' Time in force=GTC Oco='NT-00636-363' Filled=0 Fill price=0 Error='No error' Native error=''
2024-05-13 11:33:47:978|1|32|Order='183957821/[redacted]' Name='Stop loss' New state='Accepted' Instrument='NQ JUN24' Action='Sell' Limit price=0 Stop price=18278 Quantity=1 Type='Stop Market' Time in force=GTC Oco='NT-00636-363' Filled=0 Fill price=0 Error='No error' Native error=''
However, I'm not sure I'm looking at the right order as this order was cancelled by the Chart Trader Close button being clicked.
That said, it sound like you were able to resolve the issue by modeling the code after the example, is this correct?

Comment