No, that is not possible.
But you can use OrderSendAsync.
This would at least give you the opportunity to continue with the execution of your code.
Also you can set, if supported by your broker, a lifetime for your order, but I guess you are asking for the time between sending the order and receiving the confirmation of that order by the server.
If that's the case, then you have no power to interrupt this process, it is outside of your code. You need to wait for a reply and then you can remove the order, if it is invalid, or has taken to long.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi everyone
This a simple part of code that place a Buy Market Order that opens the trade fine.
What I wish to do is to add some safety control that if the Order Takes over 5 seconds to return a result(executed/rejected) the EA automatically terminates rather than the wait for the result?
Is there a way to terminate an operation/line/function and/or skip to a different line if it that line of code takes tool long ?
For example