Support Board
Date/Time: Fri, 31 Jan 2025 00:02:02 +0000
Post From: Acsil TP Management Assistance
[2019-03-26 23:04:10] |
User920967 - Posts: 62 |
This is essentially what we are using . . . //Create an s_SCNewOrder object s_SCNewOrder Order; Order.OrderQuantity = 2; Order.TimeInForce = SCT_TIF_GOOD_TILL_CANCELED; Order.OrderType = SCT_ORDERTYPE_LIMIT; // set order type to LIMIT if(condition) { Order.Price1 = Price; Order.Target1Price = Price_TP1; Order.Target2Price = Price_TP2; int Result; Result = Long == true ? (int)sc.BuyEntry(Order) : (int)sc.SellEntry(Order); } |