How to store the last order type (Buy/Sell)? - page 3

To add comments, please log in or register
Wessam Nabil
49
Wessam Nabil  
bool BuyOrSell(){
   bool Order_Type = true;
   for(int g = 0; g < OrdersHistoryTotal(); g++){
      if(OrderSelect(Order_Ticket, SELECT_BY_TICKET) == true){
         if(OrderType() == 0){
            Order_Type = true;
         }else if(OrderType() == 1){
            Order_Type = false;
         }
      }  
   }
   return(Order_Type);
}
nicholi shen
2386
nicholi shen  
Wessam Nabil:

This seems like something someone would post to troll... There's no way this is for real. 

123
To add comments, please log in or register