Support Board
Date/Time: Fri, 24 Jan 2025 06:42:21 +0000
Post From: ACSIL: unknown order error
[2018-12-31 14:27:09] |
TedMar - Posts: 190 |
Hi, how i can get more info about "unknown order error" in log? The Order is placed , but i get this message in log Chart: Replay 5.00X: ESH19 [C] 1 Min #3 | Study: TRADER MANAGER EEP | unknown order error | 2018-12-31 15:09:30 Chart: Replay 5.00X: ESH19 [C] 1 Min #3 | Study: TRADER MANAGER EEP | LONG 2501.750000 Short 0.000000 | 2018-12-31 15:09:30 here snipped ... sc.AutoLoop = 0; // Manual Loop sc.CalculationPrecedence = VERY_LOW_PREC_LEVEL; ..... .... s_SCPositionData PositionData; if (!sc.IsFullRecalculation) sc.GetTradePosition(PositionData); sc.SupportReversals = false; int& RememberedOrderID = sc.GetPersistentInt(1); s_SCNewOrder NewOrder; NewOrder.OrderQuantity = 1; NewOrder.OrderType = SCT_ORDERTYPE_MARKET; NewOrder.TimeInForce = SCT_TIF_GOOD_TILL_CANCELED; NewOrder.OCOGroup1Quantity = 0; if (!sc.IsFullRecalculation && !sc.DownloadingHistoricalData) { if (InputEntryLongSubGraphRef[BarIndex] > 0 && PositionData.PositionQuantity == 0) { int Result = (int)sc.BuyEntry(NewOrder, BarIndex); if (Result > 0) { RememberedOrderID = NewOrder.InternalOrderID; } sc.AddMessageToLog(sc.GetTradingErrorTextMessage(Result), true); } } |