Support Board
Date/Time: Sun, 19 Jan 2025 12:43:41 +0000
[Programming Help] - Attached Stop order for a entry Stop order.
View Count: 956
[2018-04-08 22:07:24] |
User99735 - Posts: 234 |
Hi, Is an Attached Stop order for a entry Stop order, supported. When I try this code s_SCNewOrder NewOrder; NewOrder.OrderQuantity = Qty;// +GetOpenPositionCount(tradeNo - 1, PermData); NewOrder.OrderType = SCT_ORDERTYPE_STOP; NewOrder.TimeInForce = SCT_TIF_DAY; NewOrder.Price1 = (double) EntryStopPrice; NewOrder.StopAllOffset = StopLossTicks * sc.TickSize; NewOrder.AttachedOrderStopAllType = SCT_ORDERTYPE_STOP; NewOrder.StopAllInternalOrderID is always returned as 0. Regards Vivek |
[2018-04-10 13:12:59] |
User99735 - Posts: 234 |
Dear All, Any update on this query? Thanks in advance. Regards Vivek |
[2018-04-11 03:36:51] |
Sierra Chart Engineering - Posts: 104368 |
Is an Attached Stop order for a entry Stop order, supported. We are testing your code now. 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 |
[2018-04-11 04:05:16] |
Sierra Chart Engineering - Posts: 104368 |
From documentation: StopAllOffset cannot be used if there are no Target orders set since the Stop orders will depend on the Target orders for the order Quantity. Use Stop1Offset instead.
That really should be clear because there is no corresponding Target. Refer to: Automated Trading From an Advanced Custom Study: [Type: double] s_SCNewOrder::StopAllOffset 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: 2018-04-11 04:05:37
|
To post a message in this thread, you need to log in with your Sierra Chart account: