Support Board
Date/Time: Tue, 11 Feb 2025 18:40:06 +0000
[User Discussion] - [ACSIL] How do I find which order has been updated from "the study function" callback?
View Count: 645
[2020-09-12 15:50:00] |
User734806 - Posts: 4 |
Hello, 1) How do I know what has been triggering "the study function"? I would like to know if the event was related to an order (and which order) or was it trigger by something else?. Right now I loop over the orders: while( sc.GetOrderByIndex(Index, OrderDetails) != SCTRADING_ORDER_ERROR) { ++Index; // Increment the index for the next call to sc.GetOrderByIndex } Is this the expected right way? (for me to loop over everything trying to figure out why the call back was trigger) Am i missing something like sc.IsOrderUpdate (true/false) and sc.OrderUpdateIndex (order id that has been updated and trigger that callback)? 2) My strategy sent 2 short orders, -2 and then -1, but I only received an event saying: Position is -2 then Position is -3 with order of -1 filled I do not receive an order callback saying -2 is filled? how do I do this? Thank you for your help Date Time Of Last Edit: 2020-09-12 16:17:41
|
To post a message in this thread, you need to log in with your Sierra Chart account: