I have been developing custom strategy using sdk. Major part of the strategy is working fine. But few times in replay, I am getting an error while submitting the order.
'Invalid order price: Buy stop order must be aboce current price'. Once this error occurs subsequent orders are not executed till this error dialog box is not removed.
Please see attached image for the error.
My query is:
1)Is this error similar to error in limit orders mentioned in below threads:
https://support.motivewave.com/forum/index.php?threads/error-submitting-order-message.1429/
https://support.motivewave.com/forum/index.php?threads/limit-order-problems.712/
or this can be fixed?
2) How to handle Error in submitting the order? does onOrderRejected method catches this error or is thera any alternative way to catch the error?
'Invalid order price: Buy stop order must be aboce current price'. Once this error occurs subsequent orders are not executed till this error dialog box is not removed.
Please see attached image for the error.
My query is:
1)Is this error similar to error in limit orders mentioned in below threads:
https://support.motivewave.com/forum/index.php?threads/error-submitting-order-message.1429/
https://support.motivewave.com/forum/index.php?threads/limit-order-problems.712/
or this can be fixed?
2) How to handle Error in submitting the order? does onOrderRejected method catches this error or is thera any alternative way to catch the error?