Support Board
Date/Time: Tue, 15 Apr 2025 12:52:48 +0000
Post From: Issue with Attached Orders – Common Stop Removed After First Target Hits
[2025-04-12 00:50:57] |
Sierra_Chart Engineering - Posts: 19226 |
This is wrong for what you want to do: order.AttachedOrderStop1Type = SCT_ORDERTYPE_STOP; order.Stop1Offset = 20.0f; order.AttachedOrderTarget1Type = SCT_ORDERTYPE_LIMIT; order.Target1Offset = 30.0f; order.AttachedOrderTarget2Type = SCT_ORDERTYPE_LIMIT; order.Target2Offset = 75.0f; It needs to be: order.OCOGroup1Quantity = 1;
order.AttachedOrderTarget1Type = SCT_ORDERTYPE_LIMIT; order.Target1Offset = 30.0f; order.OCOGroup2Quantity = 1; order.AttachedOrderTarget2Type = SCT_ORDERTYPE_LIMIT; order.Target2Offset = 75.0f; order.StopAllOffset = 20.0f; order.AttachedOrderStopAllType = SCT_ORDERTYPE_STOP; 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 |