Login Page - Create Account

Support Board


Date/Time: Sun, 19 May 2024 05:06:56 +0000



Post From: IsWorkingOrderStatus() with server-side bracket OCO

[2015-10-07 04:18:12]
User35525 - Posts: 180
My language was incorrect, and it's easy indeed to tell if an order is working or not.

My question should have been, is there a way to tell if a bracket's parent order is "active"? I want to know if it's still alive at the broker or not. I probably incorrectly assumed since the status is always SCT_OSC_FILLED, I couldn't monitor it for problems, such as a child being non-working and the parent still existing (still have a position)...or the child still working and the parent non-existent. I'll see if I can query the OrderQuantity of the parent or check if InternalOrderID is zero. Thanks, I understand now.
Date Time Of Last Edit: 2015-10-07 04:30:34