puncher:
What is MQL4 syntax to close one BUY order by the other one SELL order ?
I manage orders by Magic Numbers ...
What is MQL4 syntax to close one BUY order by the other one SELL order ?
I manage orders by Magic Numbers ...
https://c.mql5.com/mql4/book/mq4/scripts/closeby.mq4
this example may give you an idea.
puncher:
I manage orders by Magic Numbers ...
I manage orders by Magic Numbers ...
If the orders that are 'Closed By' have different lot sizes, a new order would be formed with a completely different ticket number, but it will have the same magic number as the order with the larger lot size.

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
I manage orders by Magic Numbers ...