what is the preferred way to handle OrderState, that is pending..:
- PendingChange,
- PendingCancel,
- PendingSubmit,
During this state, the strategy cannot exactly decide, what to do - for example:
strategy cannot send stoploss orders, until it has confirmed, that entry order
was really Accepted/Working.
So what do you do, if such a state is detected in you strategy ?
Do we have to wait some time and try again or how do you handle this scenario?
--------------------
Related Question 2: Is the OrderState of the order updated asynchronously ?
That mean it can change anytime, even during running call of OnBarUpdate() ?

Comment