Support Board
Date/Time: Wed, 27 Nov 2024 06:51:01 +0000
[Programming Help] - GetOrderByIndex doesn't work when connected to Trade Evaluator Service
View Count: 396
[2022-12-08 17:58:36] |
User852621 - Posts: 14 |
The code inside the while loop never gets executed: while (sc.GetOrderByIndex(Index, order) != SCTRADING_ORDER_ERROR) { SCString msg; msg.Format("%d", order.OrderStatusCode); sc.AddMessageToLog(msg, 1); Index++; } The same code works on sim mode. Date Time Of Last Edit: 2022-12-08 18:52:52
|
[2022-12-08 19:22:46] |
User907968 - Posts: 823 |
Something else must be wrong with your configuration, for me this is working on trade evaluator without problem. How is sc.SendOrdersToTradeService set in your system? Automated Trading Management: SendOrdersToTradeService |
[2022-12-09 18:39:08] |
User852621 - Posts: 14 |
Thanks, that was it! The name kind of confused me since I'm only displaying orders, but now I see it mentioned in the docs. |
To post a message in this thread, you need to log in with your Sierra Chart account: