Support Board
Date/Time: Wed, 15 Jan 2025 23:44:30 +0000
ACSIL scconstants.h definition of const int SCT_ORDERTYPE_STOP = 2;
View Count: 1098
[2017-09-27 09:27:37] |
User553714 - Posts: 184 |
Hi, Within the scconstants.h file a STOP order is defined as; const int SCT_ORDERTYPE_STOP = 2; When I define a SCTradeOrder str like this; s_SCTradeOrder StopOrderDetails; sc.GetOrderByOrderID(Stop1InternalOrderID, StopOrderDetails); and write the populated contents to file the stop "OrderType" member StopOrderDetails.OrderType I get the text "stop" displayed? file output >> 2017-08-29 19:08:00 | 1390064, Stop Shouldn't it be either "SCT_ORDERTYPE_STOP" or the int number "2" being displayed? Am I missing something? Thanks |
[2017-09-27 19:52:38] |
Sierra Chart Engineering - Posts: 104368 |
That is the order type text string. There is also an order type integer. Refer to: Automated Trading From an Advanced Custom Study: [Type: integer] OrderTypeAsInt 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: