Support Board
Date/Time: Sat, 10 May 2025 11:55:41 +0000
Post From: StopAllInternalOrderID
[2015-11-11 08:59:35] |
User99735 - Posts: 234 |
Hi, In a strategy I am opening multiple orders with attached targets and a single stop. The internalId of the stop order is fetched using NewOrder.StopAllInternalOrderID. a) Appears the internalId returned by this function is not good for using with function sc.GetOrderByOrderID() to get the Stop Order b) Am not able to use sc.GetNearestStopOrder() as there are multiple orders along with attached stops present. c) So should I use the following sc.GetOrderByIndex() to go through all the orders and find the attached stops, or is there a better way available. Regards Vivek |