Support Board
Date/Time: Fri, 24 Jan 2025 06:35:04 +0000
ACSIL: unknown order error
View Count: 713
[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); } } |
[2018-12-31 18:20:10] |
Sierra Chart Engineering - Posts: 104368 |
Change this section of code as follows: if (Result > 0)
{ RememberedOrderID = NewOrder.InternalOrderID; } else sc.AddMessageToLog(sc.GetTradingErrorTextMessage(Result), true); Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |
To post a message in this thread, you need to log in with your Sierra Chart account: