Libraries: MultiTester - page 49

 
hini #:

Fixed a problem with getting tester input data in b5120 version. During debugging it was found that for the array static const int ControlID[] = {0xE81E, 0x804E} the second element (0x804E) returns Handle equal to 0, while the first element (0xE81E) returns valid Handle. When using this Handle, receiving the tester input data works correctly.

Testing has shown that this method works in the b4879 version as well, and presumably there should be no problems in b4885 as well.

Perhaps the easiest thing to do is to change the order

Are you sure you are using the current version of MTTester.mqh? The following code is there.

  static long GetHandle( const int &ControlID[] )
  {
    static const bool MT5_b5050 = (::TerminalInfoInteger(TERMINAL_BUILD) > 5000);

    long Handle = MTTESTER::GetTerminalHandle();
    const int Size = ::ArraySize(ControlID);

    for (int i = 0; i < Size; i++)
      if (!MT5_b5050 || (ControlID[i] != 0xE81E))
        Handle = user32::GetDlgItem(Handle, ControlID[i]);

    return(Handle);
  }
 
fxsaber #:
Are you sure you are using the current version of MTTester.mqh? The following code is there.

I remember I updated to the latest version, but I don't know why I missed updating that file. Everything works fine now.

 
Добрый день!

Перестал компилироваться прилагаемый скрипт.
Выдается ошибка:
parameter convertion type 'short[260]' to 'ushort[] &' is not allowed MTTester.mqh 156 39
   int user32::GetClassNameW(long,ushort&[],int) winuser.mqh 1414 37

Может быть что-то нужно поменять в MTTester.mqh ?

Ранее он прекрасно компилировался.

Не могли бы помочь?

С уважением, Александр
Files:
_Noc.mq5  62 kb
 
klycko #:
The attached script stopped compiling.

Forum on trading, automated trading systems and testing trading strategies.

Libraries: MultiTester

fxsaber, 2025.06.08 16:57

From KB I download sources only by clicking on the corresponding file, as in the picture.

I just downloaded it in this way to check - compiled without errors.

 
fxsaber #:

Thank you very much!

Everything works again!

 

Downloaed as shown in the above image but error in cmopile

Mttester.mqh compiled error pls check for new build MT5 V5 BULD 5142 


ERRROS : 


parameter convertion type 'short[260]' to 'ushort[] &' is not allowed MTTester.mqh 135 39

'ReadFile' - no one of the overloads can be applied to the function call MTTester.mqh 1283 21


 
dave365 #:

Downloaed as shown in the above image but error in cmopile

Forum on trading, automated trading systems and testing trading strategies

Libraries: MultiTester

fxsaber, 2025.06.12 14:55

The size of the current version of the MTTester.mqh file is currently 123,822 bytes.