Support Board
Date/Time: Sun, 24 Nov 2024 08:58:13 +0000
Post From: How to submit Trail stop and a limit OCO with ACSIL
[2024-06-19 01:19:36] |
ForgivingComputers.com - Posts: 960 |
// You are using two different ways to specify targets and stops. The Target and Stop offsets will be used to calculate the actual price of the order s_SCNewOrder NewOrder; NewOrder.OCOGroup1Quantity = 1; NewOrder.TimeInForce = SCT_TIF_GOOD_TILL_CANCELED; NewOrder.Target1Offset = xxx; // This a positive number of points. You don't need to worry about above or below market NewOrder.AttachedOrderStop1Type = SCT_ORDERTYPE_TRAILING_STOP; NewOrder.Stop1Offset = xxx; // This a positive number of points. You don't need to worry about above or below market sc.SellOrder(NewOrder); |