Login Page - Create Account

Support Board


Date/Time: Sun, 08 Sep 2024 00:44:01 +0000



Post From: Stop Order Not Working in ASCIL

[2024-05-21 16:25:40]
User431178 - Posts: 495
What about the trade service log window, did you check that for error messages?


int Result = sc.SellEntry(NewOrder);

What is the value of result after you attempt order entry?


int StopResult = sc.SellEntry(StopOrder);

Similarly, what is the value of StopResult?


if (result < 0)
sc.AddMessageToTradeServiceLog(sc.GetTradingErrorTextMessage(result), 0, 1);

What are these variables set to?

sc.AllowOnlyOneTradePerBar
sc.AllowOppositeEntryWithOpposingPositionOrOrders
sc.AllowEntryWithWorkingOrders


Slightly off topic, but is there a particular reason you don't send the stop attached with the entry?