Support Board
Date/Time: Fri, 31 Jan 2025 18:59:39 +0000
Post From: ACSIL: sc.GetOrderForSymbolAndAccountByIndex(), how to get Index without open Chart?
[2019-05-17 16:39:53] |
TedMar - Posts: 190 |
Not Works Based on your Example from ACSIL howto get working OrderID/FilledPrice in ReplayMode (Sim) i added for test this 2 lines to access s_SCTradeOrder with sc.GetOrderForSymbolAndAccountByIndex int& PriorOrderFillEntrySize = sc.GetPersistentInt(1); int CurrentOrderFillEntrySize = sc.GetOrderFillArraySize(); if (CurrentOrderFillEntrySize != PriorOrderFillEntrySize) { PriorOrderFillEntrySize = CurrentOrderFillEntrySize; if (CurrentOrderFillEntrySize > 0) { s_SCOrderFillData OrderFillData; sc.GetOrderFillEntry(CurrentOrderFillEntrySize - 1, OrderFillData); SCString OrderFillMessage; double OrderQuantity = OrderFillData.Quantity; //added access throgh sc.GetOrderForSymbolAndAccountByIndex s_SCTradeOrder s_TradeOrdersSymbol; sc.GetOrderForSymbolAndAccountByIndex("F.US.EPM19", sc.SelectedTradeAccount, (CurrentOrderFillEntrySize - 1), s_TradeOrdersSymbol); OrderFillMessage.Format("sc.GetOrderFillEntry: InternalOrderID = %u || sc.GetOrderForSymbolAndAccountByIndex : InternalOrderID = %u", OrderFillData.InternalOrderID, s_TradeOrdersSymbol.InternalOrderID); sc.AddMessageToLog(OrderFillMessage, 0); } but result is 0 sc.GetOrderFillEntry: InternalOrderID = 460964 || sc.GetOrderForSymbolAndAccountByIndex : InternalOrderID = 0 | 2019-05-17 18:31:18.492
Date Time Of Last Edit: 2019-05-17 16:53:55
|