Support Board
Date/Time: Thu, 10 Sep 2026 06:44:08 +0000
ACSIL sc.CancelOrder() on Attached Target OCO Sibling-Linked-Order Cancellation Behavior
View Count: 308
| [2026-07-25 16:58:22] |
| Userneshkito - Posts: 4 |
|
In Sierra Chart version/build using SC_DLL_VERSION 2900, when an ACSIL study calls sc.CancelOrder() on an individual working attached Target order belonging to OCO Group 1, with a separate per-group Stop order as its sibling and multiple OCO groups in the original bracket: 1. Is the sibling Stop canceled, left working unchanged, or quantity-adjusted? 2. Can the cancellation propagate to linked split parent orders or another OCO group? 3. Is the behavior different for: a) Sierra Chart Internal Trade Simulation, b) Sierra-managed client-side brackets, c) Teton/Sierra intermediary-server brackets, d) third-party server-side bracket orders? 4. Which statement in the Attached Orders documentation governs explicit cancellation through sc.CancelOrder(): - “When one fills or is canceled, the other will be canceled,” or - “The other order in the OCO Group (sibling) will not be canceled either”? Please provide the exact behavior for explicit ACSIL cancellation, not fill-triggered OCO handling. |
| [2026-07-25 17:01:24] |
| User431178 - Posts: 905 |
|
Docs: Automated Trading From an Advanced Custom Study: sc.CancelOrder When an order is canceled, all other working orders that are linked to the order you are canceling, will also be canceled. Orders may be linked when the order is part of an order set that contains an Attached Order with an OCO Group setting of All OCO Groups and there was more than one OCO Group used. You can see if an order is part of a linked group by looking at the Link ID field in Trade >> Trade Orders Window for the order. Orders that share the same Link ID are linked. |
| [2026-07-25 17:45:04] |
| Userneshkito - Posts: 4 |
|
Thank you. We understand that cancellation propagates to other working orders only when they are linked through a shared nonzero Link ID. We need clarification on one specific case: An attached Target order and its Stop order are OCO siblings, but both have Link ID = 0. If ACSIL explicitly calls sc.CancelOrder() on the working Target order, will Sierra Chart also cancel its attached OCO sibling Stop order? In other words, does explicit cancellation of one attached OCO order cancel its sibling independently of the Link ID, or does the sibling remain working when both Link IDs are 0? Please answer specifically: Target canceled → Stop remains working; or Target canceled → OCO sibling Stop is also canceled. This concerns explicit cancellation through sc.CancelOrder(), not a Target fill. |
| [2026-07-28 07:42:23] |
| Sierra_Chart Engineering - Posts: 24817 |
|
The Link ID is unrelated to the sibling relationship (target and stop order). Documentation: Link ID: An Attached Order that is in the All Groups OCO Group or a parent order, will be split into smaller orders if there is more than one OCO group used in the list of Attached Orders submitted with an order. When an order is split into smaller orders, they are linked together and this indicates the Internal Order ID used for linking. It is the Internal Order ID of the first order in that group. When one of the orders in a group of orders linked together is modified or canceled, the other ones will be as well. This happens automatically.
Canceling individually an attached Limit order will not cause the sibling stop order to be canceled. The same with the attached stop order. 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, use the Teton service: Sierra Chart Teton Futures Order Routing |
To post a message in this thread, you need to log in with your Sierra Chart account:
