how to remove those warnings....please help

 
 
ronaldo cabardo:

Give the code in text, not an image

 
for(int i=0; i<OrdersTotal(); i++)
     {
      if(!OrderSelect(i,SELECT_BY_POS,MODE_TRADES))
         break;
      if(OrderSymbol()==Symbol() && OrderMagicNumber()==123456)
        {
         if(OrderType()==OP_SELL)
           {
            //....
           }
        }
     }
 

What part of "should be checked" was unclear. Check it.

for(int i=0; i<OrdersTotal(); i++) if(
   OrderSelect(i,SELECT_BY_POS)
&& OrderMagicNumber() == 123456
&& OrderType()        == OP_SELL
&& OrderSymbol()      == Symbol()
)  ++NumberOfSellPosition;