Support Board
Date/Time: Thu, 15 May 2025 21:28:30 +0000
Post From: How to submit Trail stop and a limit OCO with ACSIL
[2024-06-19 01:19:36] |
ForgivingComputers.com - Posts: 1058 |
// 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); |