Tổng hợp nhưng hàm code forex mql từ cơ bản đến nâng cao

'your code here A Ca'
  {
   double Highest=0;
   
   for(int a=0; a<=OrdersTotal(); a++)//'Bữa giờ có code bot nua ko '
     {
      if(OrderSelect(a,SELECT_BY_POS,MODE_TRADES))
         if(OrderSymbol()==_Symbol)
           {
            if(OrderType()==OP_BUY && mode ==0)
              {
               Highest=OrderOpenPrice();
              }
            if(OrderType()==OP_SELL &&; mode ==1)
              {
               Highest=OrderOpenPrice();
              }
           }
     }
   return Highest;
  }

Leave a Reply

Your email address will not be published. Required fields are marked *