Closing position with "Async mode"? Can you give a example code?
sanane sanane1:
Closing position with "Async mode"? Can you give a example code?
Closing position with "Async mode"? Can you give a example code?
Look at the documentation - there is a detailed example there

Documentation on MQL5: Trade Functions / OrderSendAsync
- www.mql5.com
OrderSendAsync - Trade Functions - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
@Nedim Hallovic #: As far as I can see there are only examples for buy and sell orders, but not for closing them? or am I blind?
On MT5, closing a position is accomplished by placing an order in the opposite direction with the same volume and a reference to the open position.
So it is essentially the same thing except for the reference to the position ticket.

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