Features of the mql5 language, subtleties and tricks - page 312

 
Ryan L Johnson #:
iMaOnArray

Thank you. Does the function count evenly? No errors?

 
Vitaly Murlenko #:

Thank you. Does the function count evenly? No errors?

You're welcome.

Yes, as long as it's implemented correctly. The custom function is lengthy because it's not a standard function. See my master mq5 file there for that indicator as an example.

 
Ryan L Johnson #:

You're welcome.

Yes, provided it is implemented correctly. Custom function takes a lot of time because it is not a standard function. See my main mq5 file for this indicator as an example.

I have copied it. Thanks.

 
fxsaber #:
Pay attention to such constructs in your sources. After b5200 they may stop working
struct A
{
  int Array[];
  
  int ArrayResize( const int Size )
  {
    return(ArrayResize(this.Array, Size));   // wrong parameters count, 2 passed, but 1 requires
    return(::ArrayResize(this.Array, Size)); // OK
  }
};