Support Board
Date/Time: Sun, 19 Jan 2025 15:08:08 +0000
Post From: Attached Stop order for a entry Stop order.
[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 |