Order2 = SubmitOrder(0 , OrderAction.Buy, OrderType.Stop, LotSize, 0, Price1var, "Long", "Enterlong");
Order1 = SubmitOrder(0 , OrderAction.Sell, OrderType.Stop, LotSize, 0, Price2var, "Short", "Entershort");
that work right. But If i close strategy and run it again, orders are sent to broker and immediately are canceled with this error:
Order rejected - reason: The OCA group order has alreadt been filled. (201).
But there are no opened order, could you help me please? Thank you
Comment