Support Board
Date/Time: Sun, 08 Jun 2025 03:53:26 +0000
Post From: Trading system, send new order after limit order fill
[2023-02-06 23:28:44] |
devilvi - Posts: 2 |
Hi, I need to find out how I can detect an order is filled in an automated trading system. For example. I place a LIMIT BUY order under the price but when that order is filled, I want to place an extra order above the price to add more position. How can I trigger when the order is filled but in realtime calculation (not at the bar close)? I have something like this but it's like it does not detect this in realtime I have also set sc.UpdateAlways = 1; (but nothing seems to work) s_SCTradeOrder TradeOrder; int r_Entry_1_InternalOrderID = Order_1.InternalOrderID; if (r_Entry_1_InternalOrderID != 0){ int Order_1_StatusCode = TradeOrder.OrderStatusCode; if (Order_1_StatusCode == SCT_OSC_FILLED){ .......etc } thanks Date Time Of Last Edit: 2023-02-07 23:37:29
|