Anyone guide me what code to insert in this script close the buy orders after change the SL to open price with 2 pip low.
BR
MQL5:
for(int i = PositionsTotal(); i >= 0; i--) { if(m_position.SelectByIndex(i)) if (PositionGetString(POSITION_SYMBOL)==Symbol() && PositionGetInteger(POSITION_TYPE)==POSITION_TYPE_BUY) m_trade.PositionClose(m_position.Ticket());
BR