Juan Mata / Publications
Forum
How can i make my EA close Lossing position before the wining one?
With regard to the code attach below, How can i make my EA close Losing positions before the wining one? int CloseAll(){ for(int i=OrdersTotal()-1;i>=0;i--){ if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES)){ int MN = OrderMagicNumber(); if(OrderSymbol()==_Symbol &&