last_order_Type(int magic)

Back to topics list To post a new topic, please log in or register
avatar
15
el3reef 2016.08.23 16:08
 

double last_order_Type(int magic){
 
   for(int i=OrdersHistoryTotal();i >= 0;i--)
     {
     
         OrderSelect(i,SELECT_BY_POS,MODE_HISTORY); 
         if (OrderMagicNumber() == magic){
             
           break;
         }
 
     }
 
   return OrderType();
}

 

avatar
Moderator
3419
GumRai 2016.08.23 16:19 #
 
Do you have a question?
Back to topics list  

To add comments, please log in or register