condition

 

Hi, there are problems to put in the same condition the selection order and the magic number of the same order thus selected? Thanks.

 

if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES) && OrderMagicNumber()==mnumber)

 
fajuzi:

Hi, there are problems to put in the same condition the selection order and the magic number of the same order thus selected? Thanks.

 

if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES) && OrderMagicNumber()==mnumber)

      if(OrderSelect(i, SELECT_BY_POS, MODE_TRADES))
      {
         if(OrderSymbol() == Symbol() && OrderMagicNumber() == MagicNumber)
         {
Reason: