- How to close multi-open-trades at one shot
- help with this close all open order once order is modified
- [Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2.
Not possible! You have to use "loop". You can however use the "Close By" method to "freeze" the gains before carrying out the "loop", but only if the broker allows using this method.
Closes an opened order by another opposite opened order
- docs.mql4.com
Hello
Doable, but quite difficult.
From one EA you can only send one trade request at a time.
But, from MULTIPLE EAs you can send MULTIPLE requests at the same time.
So, you need to deploy an army of EAs, being managed by one Master EA, build a communication between them based on CHART_EVENT_CUSTOM and make them sending all your closing requests at the same moment.
:)))
Technically incorrect. On MT4, the Order Transactions are still processed synchronously, even if using multiple EAs.
The EAs may send multiple requests, but the terminal will still process them individually. MT4 does not support asynchronous requests.
Even if I am wrong, it is not worth the extra effort, because the CloseBy method will always "lock" the gains much more quickly and is much easier to implement.
At the speed of a single transaction (the reverse order), the gains are locked, and then all the individual trades can be closed with OrderCloseBy at a leisurely pace.
- docs.mql4.com
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use