Login Page - Create Account

Support Board


Date/Time: Mon, 21 Apr 2025 04:55:49 +0000



[User Discussion] - Getting Order OPEN/ClOSE Status in ACSIL.

View Count: 108

[2025-03-17 18:59:33]
kam2001 - Posts: 86
Hi, is there a way to get OPEN/ClOSE Status of an order via ACSIL, i can access the order using internalId via GetOrderByOrderID() or GetOrderFillEntry() but not sure if the order was actually closed or Opened. ExistingOrder.OrderStatusCode is 8, means order is filled as per enum SCOrderStatusCodeEnum, but not sure it was filled to OPEN NEW Trade or CLOSE Existing Trade. Thanks. I can see there is a column in Trade Orders window for OPEN/CLOSE. Please See attached. Thanks
imageopen-close-status.png / V - Attached On 2025-03-17 18:59:02 UTC - Size: 28.35 KB - 22 views
Attachment Deleted.
[2025-03-17 20:50:42]
kam2001 - Posts: 86
Manage to sort it. Thanks anyway.
if(ExistingOrder.BuySell== BSE_BUY && ExistingOrder.OpenClose == OCE_OPEN ){
sc.AddMessageToLog("Buy Order Opened and Filled", 0);
}

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account