Login Page - Create Account

Support Board


Date/Time: Fri, 27 Dec 2024 02:02:18 +0000



Stop Limit Order ignores limit price set in ACSIL study

View Count: 934

[2016-03-04 12:49:34]
wat - Posts: 67
When I try to create new stop limit order from within study, the price2 set in order is ignored and limit offset is set from Trade Window.

s_SCNewOrder NewOrder;
NewOrder.OrderQuantity = 1;
NewOrder.OrderType = SCT_ORDERTYPE_STOP_LIMIT;
NewOrder.Price1 = sc.High[sc.Index] + 10 * sc.TickSize;
NewOrder.Price2 = NewOrder.Price1 + 2 * sc.TickSize;
int Result = sc.BuyEntry(NewOrder);
expected result: limit 2 ticks above stop
reality: based in settings in Trade Window
[2016-03-04 21:19:41]
Sierra Chart Engineering - Posts: 104368
We can see that NewOrder.Price2 is not setting the limit price of a Stop-Limit order. This will take us some time to solve.

You need to set the Limit price as an offset. Use:
s_SCNewOrder::StopLimitOrderLimitOffset
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:

Login

Login Page - Create Account