Support Board
Date/Time: Wed, 25 Dec 2024 08:19:42 +0000
StopAllInternalOrderID
View Count: 922
[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 |
[2015-11-11 09:37:10] |
Sierra Chart Engineering - Posts: 104368 |
ACSIL does return all of the Internal Order IDs for all of the stop orders. Refer to the documentation for this here: https://www.sierrachart.com/index.php?page=doc/doc_ACSILTrading.html#StopInternalOrderID Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |
[2015-11-11 09:39:55] |
User99735 - Posts: 234 |
Ok, so what is the difference between StopAllInternalOrderID and StopAllInternalOrderID_2. What is the difference between the two, there should be only one StopAll ID, isnt it, and which one returns the correct ID. Regards Vivek |
[2015-11-11 09:43:25] |
Sierra Chart Engineering - Posts: 104368 |
Really it would be best after submitting the order that you look at all of the Internal Order IDs using a debugger, then you can clearly see what is set. This is the relevant paragraph: In the case when you are using StopAllOffset , then for every Target# being used, the corresponding Stop#InternalOrderID will be set, since there will be multiple Stop orders, one for each Target#.
If there are 2 Stop orders created, then these will have the internal order IDs for them: Stop1InternalOrderID Stop2InternalOrderID Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing Date Time Of Last Edit: 2015-11-11 09:44:09
|
[2015-11-11 10:46:59] |
User99735 - Posts: 234 |
Ok so even with StopAllOffset, separate stops are created for each target, so StopAllInternalOrderID maybe pointing to the first or the last stop order?
|
[2015-11-11 18:10:11] |
Sierra Chart Engineering - Posts: 104368 |
so StopAllInternalOrderID maybe pointing to the first or the last stop order?
It will contain the Internal Order ID for the first order. The documentation does state this clearly.
Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing Date Time Of Last Edit: 2015-11-11 18:24:25
|
To post a message in this thread, you need to log in with your Sierra Chart account: