Login Page - Create Account

Support Board


Date/Time: Sat, 01 Mar 2025 01:29:45 +0000



Post From: Chart replay - order ID returned from future?

[2021-09-07 14:09:54]
jwick - Posts: 142
Thanks for the reply.

How was that internal order ID obtained?

Here is how I'm obtaining the internal order ID's:

s_SCNewOrder order;
order.InternalOrderID = 0; order.OrderType = SCT_ORDERTYPE_STOP; order.Price1 = price; order.OrderQuantity = (int)quantity; order.Price2 = price; order.TimeInForce = SCT_TIF_GTC;

sc.BuyEntry(order);
idEntry[sc.Index] = (float)order.InternalOrderID;