2 Answers
<p>You can just visit this website to learn about it: <a href="https://docs.mql4.com/trading/ordercloseby">OrderCloseBy</a></p>
3 Views
<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