MetaTrader 4 Build 529 beta released with new compiler - page 142

 

Good afternoon.

And this.

https://www.mql5.com/ru/docs/constants/namedconstants/uninit

for the new four will be the same? Or will there be a different list?

Now when deinitializing by ExpertRemove() it gives out REASON_TEMPLATE instead of REASON_PROGRAM

Thank you.

 
MilordFX:

Please answer in detail and clearly?

Switch to MetaTrader 5.

In MetaTrader 4 we only do the application market, which is why we started the language upgrade.

 
FAQ:
but brackets are better placed everywhere.


I've noticed that a large number of brackets slows down EA testing...

It's better when the program logic is best thought out without brackets ...

 
VOLDEMAR:


I've noticed that a large number of brackets slows down EA testing ...

It's better when the program logic is as well thought out as possible without brackets ...

Don't... don't go to any more "roofies" threads. Otherwise,.... you're delusional...
 
VOLDEMAR:


I've noticed that a large number of brackets slows down EA testing ...

It's better when the program logic is as well thought out as possible without brackets ...


But it speeds up debugging ...
 
MilordFX:

In addition, I would like you to finally make the EA parameters window (called with F7) adjustable in size and according to trader's preferences.

Renat:

Switch to MetaTrader 5.

In MetaTrader 4 we are only doing the applications market and we have upgraded the language for it.

Sadists...
 
void OnStart()
  {
   Print(Test_2(2,5),Test_1(2,5));
  }
//+------------------------------------------------------------------+

int Test_1(int a, int b)
{
  int c=0;
  for(int i=0;i<1000;i++)
    {
     if(a>b)
       {
        if(a-b > 2*b)
          {
           c+=a;
          }
        else
          {
           c+=b;
          }
       }
     else
       {
        if(b-a > 2*a)
          {
           c+=a;
          }
        else
          {
           c+=b;
          }
       }
    }
  return c;
}
int Test_2(int a, int b)
{
  int c=0;
  for(int i=0;i<1000;i++)
     if(a>b)
        if(a-b > 2*b)
           c+=a;
        else
           c+=b;
      else
        if(b-a > 2*a)
           c+=a;
        else
           c+=b;
  return с;
}

The functions are topologically and logically identical. Only the brackets are different.

Profiler report:

OnStart;12;1;213;100.00%
Test_2;14;1;99;46.48%
Test_1;14;1;98;46.01%
Print;14;1;15;7.04%

As we can see, the differences are within the limits of "random fluctuations" of the multitasking system.

In the compiler's output file (*.ex4/5), there are no parentheses, not even a trace of them. Brackets only serve to structure the logic of the source.

VOLDEMAR, pause for a moment, have a Twix.

 

yep, after the update to the 566 build the ticks have stopped coming to the terminal altogether,

the last quotes on all TFs, on all pairs at 18:00

I had to reboot my PC, it looks like some kind of sadness.

(If i dont know what to do with them, then i dont know what to do.)

p.s. On the 5 also after the update everything hung, but already at 21:00, there editor has updated probably

 

and rebooting didn't help - no quotation and no matter what, I'm going to open a new account now, what if.....

I do not have any luck.

There are no errors in the logs, the only thing is that when scanning servers, if you press cancel, the window closes immediately, and the terminal hangs for 10 seconds and then gives a message:

2013.12.25 00:26:05.807 Accounts: terminated

2013.12.25 00:26:05.807 Accounts: timeout on stop

2013.12.25 00:26:02.796 Accounts: timeout on stop

2013.12.25 00:25:59.786 Accounts: timeout on stop

2013.12.25 00:25:56.775 Accounts: timeout on stop

2013.12.25 00:25:53.764 Accounts: timeout on stop

 
ALXIMIKS:

yep, after the update to the 566 build the ticks have stopped coming to the terminal altogether,

the last quotes on all TFs, on all pairs at 18:00

I had to reboot my PC, it looks like some kind of sadness.

(If i dont know what to do with them, then i dont know what to do.)

p.s. On the 5ks also after the update hung everything but already at 21:00, there editor has updated probably


Merry Christmas!

On Thursday the ticks will be back :)

Reason: