I could not reproduce this issue with the provided source code but such cancellations usually happen when the price is not valid e.g. lower that the ask price for buy orders and higher than the bid price for sell orders.
This is my issue though. The entry price is above Bid or Ask (for EURUSD data from ICMarkets) and the order gets successfully placed. I observed it in the debugger tick by tick and at some point it just gets cancelled for no apparent reason.
emileschneider7
21 Sep 2022, 16:39
RE:
PanagiotisCharalampous said:
This is my issue though. The entry price is above Bid or Ask (for EURUSD data from ICMarkets) and the order gets successfully placed. I observed it in the debugger tick by tick and at some point it just gets cancelled for no apparent reason.
@emileschneider7