Login Page - Create Account

Support Board


Date/Time: Mon, 30 Jun 2025 21:25:22 +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.