Support Board
Date/Time: Mon, 03 Mar 2025 22:23:36 +0000
What does a General order error mean when the Trade Service Log does not contain anything?
View Count: 776
[2021-11-08 23:33:28] |
ycomp - Posts: 321 |
When using the Entry Buy or Sell functions, does anyone have any idea what a -1 (General order error. Refer to 'Trade >> Trade Service Log' for specific message for this trading action error) means when the Trade Service Log does not show any related messages? |
[2021-11-09 12:53:29] |
|
There should definitely be a message in the Trade Service Log. If you do not see one there check the Trade >> Trade Activity Log. Otherwise, it is not possible to know what the error specifically is. We need to know what function is being called and the parameters. 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 Date Time Of Last Edit: 2021-11-09 12:53:53
|
[2021-11-09 13:43:21] |
ycomp - Posts: 321 |
Trade Acitivty Log shows nothing for the account / symbol the indicator is running on Global Simulation mode on sc.SendOrdersToTradeService = false;
s_SCNewOrder NewOrder; NewOrder.OrderQuantity = 1; NewOrder.OrderType = SCT_ORDERTYPE_LIMIT; // (but I tried with market also) NewOrder.Price1 = masterParentOrder.Price1; NewOrder.TimeInForce = SCT_TIF_GOOD_TILL_CANCELED; sc.BuyEntry(NewOrder, sc.UpdateStartIndex); // but I also tried with auto-looping disable sc.BuyEntry(NewOrder); // same error and blank service log Date Time Of Last Edit: 2021-11-09 13:44:21
|
[2021-11-17 03:44:25] |
Sierra_Chart Engineering - Posts: 18631 |
We looked over the internal code and we do not see a case where there would not be a message added to the Trade Service Log. And we are getting messages with testing with your code. Do you see any messages in the Trade >> Trade Service Log? It may be disabled. 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, use 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: