How to use the OrderCloseBy() command?

4 Views
Tae Hu Former Electronics Drafter at Gantos
Answered 4 months, 4 weeks ago
<p>You can just visit this website to learn about it:&nbsp;<a href="https://docs.mql4.com/trading/ordercloseby">OrderCloseBy</a></p>
3 Views
Bob Ruiz
Answered 1 week, 2 days ago
<p id="isPasted">Closing Opposite Orders</p><p><br></p><p>Opposite (Counter) Order is a market order opened in the direction opposite to the direction of another market order opened for the same symbol.</p><p>If you have two opposite orders for a certain symbol, you can close them simultaneously, one by another, using the function OrderCloseBy(). You will save one spread if you perform such an operation.</p><p>Function OrderCloseBy()</p><p>bool OrderCloseBy(int ticket, int opposite, color Color=CLR_NONE)</p><p>The function closes one market order by another market order opened for the same symbol in the opposite direction. The function returns TRUE, if it is completed successfully, and FALSE, if …</p>
1 View