Login Page - Create Account

Support Board


Date/Time: Sun, 22 Dec 2024 05:09:58 +0000



Post From: Can I modify using s_SCNewOrder ModifyOrder an order given by the spreadsheet?

[2015-03-03 07:17:51]
CMG - Posts: 179
After the sc.GetOrderByIndex, I look for open orders, that are attached orders, that are not filled, get the InternalOrderID and add 2, (all stops are the internal order id + 2) and then modify them.

          
s_SCNewOrder ModifyOrder;
ModifyOrder.InternalOrderID = OrderID+2;
ModifyOrder.Price1 = FirstTradePrice;

sc.ModifyOrder(ModifyOrder);