Details:
- The strategy places an order at approximately line 3,000 of the code.
- The order is cancelled at around line 3,700.
- The strategy concludes and code execution ends at around line 5,000.
- Despite cancellation, the order is executed in real-time, but never in backtesting.
- This issue has occurred multiple times with different orders and logic, and I've verified it through debugging.
The orders are cancelled using the following code:
CancelOrder(orderABC);
orderABC = null;
Has anyone else encountered this issue? Any insights or suggestions would be greatly appreciated.
Thanks.

Comment