Тестер стратегий MetaTrader 5: ошибки, баги, предложения по улучшению работы - страница 63

 
fxsaber:

Перед нажатием на Стоп вижу в логах и в таблице Оптимизации, что уже посчитались ошибочные проходы. Тогда и жму Стоп, т.к. продолжать нет смысла.

Неправильно понял вопрос.

Да, как правило, нужно хотя бы один раз нажать Стоп на предыдущей Оптимизации. Но как только нарываешься на ошибочную Оптимизацию, то все следующие так же становятся ошибочными (не меняю уже временной интервал).


Возможно, кто-то подключится к воспроизведению. Странно, что у Вас не получается, а у меня на чистом Терминале быстро воспроизводится.

Воспроизвёл именно с нажатием стопа.

Разбираемся

 
Slava:

Воспроизвёл именно с нажатием стопа.

Разбираемся

Вешаю себе орден за поимку неуловимого Джо.

 

Часто бывает такое, что запустил Оптимизацию и что-то забыл учесть. Приходится останавливать, править и запускать именно то, что изначально хотел.

Так вот этот ошибочный вариант запуска Оптимизации остается висеть в виде ненужного кеша, мельтешит перед глазами в списке кешей и т.д.


Предлагаю подумать над таким вариантом. Если была нажата кнопка Стоп, то рядом с ней показать крестик, при нажатии на который удаляется эта мусорная кеш-запись.

Строка для поиска: Uluchshenie 008.
 

Большая просьба при открытии графика одиночного прохода в комментарии чарта выдавать не только данные советника, но и название соответствующего tst-файла.

Аналогичная просьба для графиков Оптимизации. Указывать хоть где-то название opt-файла.

Строка для поиска: Uluchshenie 009.
 

I haven't been able to use MT5's strategy tester properly for a long time.

Before today, I was able to use the 2280 version on my local CPU core and get the correct results.

Tester agents deployed to remote CPU cores on the LAN are always forced to upgrade to bug-ridden versions after 2280, causing all remote tester agents to return incorrect results.


So for a long time I had to wait patiently for optimizations to be done on the local computer while a lot of computing power deployed on the LAN was wasted.

I'm so hoping that metaquotes fixes bugs in the new release version, making the strategy tester a tool that at least works.

And today I finally got version 2340.

Then I found out that even the optimizations tasks on the local CPU core were not getting the right results.


I am sorry that I did not translate my post from English to Russian, because I am afraid that the translation quality of the software is not good.


 
tickfenix:

Then I found out that even the optimizations tasks on the local CPU core were not getting the right results.

Несколько последних страниц в этой ветке обсуждения посвящены этой проблеме. Вчера разработчикам удалось воспроизвести этот баг у себя, и они занимаются его устранением.

 
fxsaber:

Несколько последних страниц в этой ветке обсуждения посвящены этой проблеме. Вчера разработчикам удалось воспроизвести этот баг у себя, и они занимаются его устранением.

So glad to hear that! Now I begin to pray.

 
fxsaber:

Спасибо за помощь!

Бана не было

 

Заюзал DLL написанный на C#. Еще вчера все работало!

Сегодня при попытке запуска такого эксперта (упростил до минимума):

#import "core.dll"

int OnInit() {
   Class1::Inc();
   return(INIT_SUCCEEDED);
}

выдает в журнале:

2020.02.22 16:29:16.925 Tester  file C:\Program Files\MetaTrader 5\MQL5\Libraries\core.dll.ex5 open error [2]

По всей видимости проблема в том, что почему то стал искаться ex5 файл((((

 

Hi, sorry for not posting in Russian as I don't know this language. 


My post is related to the DLL issue ingram posted. 've just updated to MetaTrader 2340 and I noticed that it broke custom C++ DLL loading in Strategy Tester. I have an EA that uses a custom DLL and it stopped working because the Strategy Tester is unable to load the DLL. Before version 2340, everything was working properly. I'm using visualization mode.

I wrote a simple EA with a test.dll to reproduce this error. The test DLL exports only one function, which is "void __stdcall  test(int & x)".

When I try to run the EA in the Strategy Tester, I get this error:

2020.02.21 22:57:17.607 Tester file C:\Users\Luis\AppData\Roaming\MetaQuotes\Terminal\D0E8209F77C8CF37AD8BF550E51FF075\MQL5\Experts\Luis\tests\TestExpert\TestDLL.dll.ex5 open error [2]

Here is the EA code:

#property copyright "Copyright 2019, MetaQuotes Software Corp."
#property link      "https://www.mql5.com"
#property version   "1.00"


#import "TestDLL.dll"
void test (int& x);
#import

//+------------------------------------------------------------------+
//| Expert initialization function                                   |
//+------------------------------------------------------------------+
int OnInit()
  {
//---
   int p = 0;
   test(p);
   
   Print (p);
//---
   return(INIT_SUCCEEDED);
  }
//+------------------------------------------------------------------+
//| Expert deinitialization function                                 |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
  {
//---
   
  }
//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+
void OnTick()
  {
//---
   

And here is the DLL code (C++)


#define _DLLAPI extern "C" __declspec(dllexport)

_DLLAPI void __stdcall  test(int & x)
{
    x = 25;
    return;
}


BOOL APIENTRY DllMain( HMODULE hModule,
                       DWORD  ul_reason_for_call,
                       LPVOID lpReserved
                     )
{
    switch (ul_reason_for_call)
    {
    case DLL_PROCESS_ATTACH:
    case DLL_THREAD_ATTACH:
    case DLL_THREAD_DETACH:
    case DLL_PROCESS_DETACH:
        break;
    }
    return TRUE;
}

I've attached the sample EA to reproduce this issue. How to solve this problem?


Thanks

Файлы:
TestExpert.zip  19 kb
Причина обращения: