Login Page - Create Account

Support Board


Date/Time: Sat, 18 May 2024 20:20:08 +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);