MQL4 question: CLOSE ORDER BY THE OTHER ONE
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.
I manage orders by Magic Numbers ...