Support Board
Date/Time: Sat, 10 May 2025 22:22:34 +0000
Post From: ACSIL - modify Trail and Trigger offsets for Triggered Trail Stop
[2016-02-19 23:39:18] |
rhovega - Posts: 279 |
For reference of others looking into the same, got it to work as follows: s_SCNewOrder NewOrder; NewOrder.OrderQuantity = 1; NewOrder.OrderType = SCT_ORDERTYPE_OCO_LIMIT_STOP; NewOrder.TimeInForce = SCT_TIF_GTC; NewOrder.Price1 = 1.1110; NewOrder.Price2 = 1.1150; int Result = sc.BuyEntry(NewOrder); This order type does not use NewOrder.OCOGroup1Quantity but rather NewOrder.OrderQuantity. |