Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 539

 
PolarSeaman:

Yes, you helped, now I want to limit the time. Eliminate counting from 5pm to 11pm.

Instead ofHour()-> time[i]

 
Vitaly Muzichenko:

Instead ofHour()-> time[i].

Thank you.

 
Vitaly Muzichenko:

Instead ofHour()-> time[i]

From this time[i] you need to extract an hour.

 
Good afternoon!!! Can you point me to the wrong branch, or my question seems to have gone unheeded by the experts)))
 
Can you tell me what the problem is: the graph displays letters of the Russian alphabet instead of up and down arrows. I assume it's something in Windows 7. Where to set it up, maybe someone has encountered this?
 
HeAic:
Can you tell me what the problem is: the graphic shows the letters of the Russian alphabet instead of the up and down arrows. I am assuming this is something in Windows 7. Where to set it up, maybe someone has encountered this?


the same problem in some fonts.

show a screenshot.

wingdings check the font in the system

 
Guys. Already my brain is boiling((( Can you tell me how to make the number of orders out of this definition?
int fMarketOrdersOpenB(int type){
   int c=0,aBuyCount=0;
   for(int i=0;i<OrdersTotal();i++){
      if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES)){
         if(OrderSymbol()==Symbol() && OrderMagicNumber()==123){
            switch(OrderType()){
               case OP_BUY:aBuyCount++;break;
              }}}else{return(-1);}}
   if(type==OP_BUY)c=aBuyCount;return(c);}

make the amount of volume in lots? What needs to be changed or tweaked?

 
Rustam Bikbulatov:
Guys. Already my brain is boiling((( Tell me how to make the number of orders out of this definition

make the amount of volume in lots?

//+------------------------------------------------------------------+
int fMarketOrdersOpenB(void)
  {
   int aBuyCount=0;
   for(int i=0;i<OrdersTotal();i++)
     {
      if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES))
        {
         if(OrderSymbol()==Symbol() && OrderMagicNumber()==123 && OrderType()==ORDER_TYPE_BUY)
            aBuyCount++;
        }
     }
   return aBuyCount;
  }
//+------------------------------------------------------------------+

Or better still:

//+------------------------------------------------------------------+
int fMarketOrdersOpenB(void)
  {
   int total=OrdersTotal(),aBuyCount=0;
   for(int i=total-1;i>=0;i--)
     {
      if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES))
        {
         if(OrderSymbol()==Symbol() && OrderMagicNumber()==123 && OrderType()==ORDER_TYPE_BUY)
            aBuyCount++;
        }
     }
   return aBuyCount;
  }
//+------------------------------------------------------------------+
 
Artyom Trishkin:

Thanks!!!!! Now I'll try to squeeze it into my code! Why on the first line (void) ?

 
Artyom Trishkin:

Or better yet:

It's still not right. It's a one. Okay, thanks for the help anyway.

Reason: