Support Board
Date/Time: Sat, 18 Jan 2025 07:59:34 +0000
[Programming Help] - BuyOrder() cannot support Limit Chase Order for different symbol in the chart
View Count: 848
[2018-01-24 13:28:29] |
User841591 - Posts: 42 |
I tried to submit the Limit chase order (SCT_ORDERTYPE_LIMIT_CHASE) with BuyOrder(NewOrder) in which the symbol is different from the chart that the studies attached. It return error code -8 (Unsupport order type) However, it work fine with the limit order (SCT_ORDERTYPE_LIMIT). The description of the trade setting and NewOrder is attached below. Pls advise what wrong on it. sc.AllowMultipleEntriesInSameDirection = true; sc.MaximumPositionAllowed = 2; sc.SupportReversals = false; sc.SendOrdersToTradeService = true; sc.AllowOppositeEntryWithOpposingPositionOrOrders = true; sc.SupportAttachedOrdersForTrading = false; sc.CancelAllOrdersOnEntriesAndReversals= true; sc.AllowEntryWithWorkingOrders = false; sc.CancelAllWorkingOrdersOnExit = true; sc.AllowOnlyOneTradePerBar = true; sc.MaintainTradeStatisticsAndTradesData = true; s_SCNewOrder NewOrder2; NewOrder2.Symbol=Symbol2; NewOrder2.OrderQuantity = 1; NewOrder2.OrderType = SCT_ORDERTYPE_LIMIT_CHASE; NewOrder2.MaximumChaseAsPrice = 4; Result = sc.BuyOrder(NewOrder); \\ Return -8 Unsupport order type |
[2018-01-24 18:15:42] |
Sierra Chart Engineering - Posts: 104368 |
This particular Order Type is not currently supported when using a symbol or Trade Account different than the chart it is submitted for, but we will see if we can add support for this in this case.
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: 2018-01-24 18:16:03
|
To post a message in this thread, you need to log in with your Sierra Chart account: