Login Page - Create Account

Support Board


Date/Time: Fri, 27 Dec 2024 17:52:08 +0000



Post From: Stop Limit Order ignores limit price set in ACSIL study

[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