Errors, bugs, questions - page 2608

 
RickD:

I noticed that MQLInfoString(MQL_PROGRAM_NAME) returns different values in MT5 terminal and MT5 tester.

In the terminal it returns MyIndicator, while in the tester it returns MySubFolder\MyIndicator.ex5

Is it a bug or a feature?

If by "feature" you mean something useful, it's not a feature)))

 
RickD:

I noticed that MQLInfoString(MQL_PROGRAM_NAME) returns different values in MT5 terminal and MT5 tester.

In the terminal it returns MyIndicator, while in the tester it returns MySubFolder\MyIndicator.ex5

Is it a bug or a feature?

There are no folders for indicators in the Strategy Tester at all. Unlike the client terminal.

This is neither a bug nor a feature.

Why is this so important to you?

 
Slava:

There are no indicator folders in the tester at all. Unlike in the client terminal.

This is neither a bug, nor a feature.

Why is it so important to you?

In the tester there are no folders for Expert Advisors. But MQLInfoString(MQL_PROGRAM_NAME) returns the same value when testing an Expert Advisor.

And I need the same value to link the version under test and the version on the chart using named channels.

 

Why is the indicator not displayed after the test?

//+--------
   if(period_HMA7C > 0)
   {
      handle_HMA7C = iCustom(Symbol(),0,"my_used\\my_HMA7C_123",period_HMA7C);
      if(handle_HMA7C == INVALID_HANDLE)                                   // проверяем наличие хендла индикатора
      {
         Print("Не удалось получить хендл индикатора handle_HMA7C");       // если хендл не получен, то выводим сообщение в лог об ошибке
         return(INIT_FAILED);                                              // завершаем работу с ошибкой
      }
      else
      {
         Print("Получен хендл индикатора handle_HMA7C");
         if(!MQLInfoInteger(MQL_OPTIMIZATION))
         {
            if(!ChartIndicatorAdd(ChartID(),0,handle_HMA7C)) Print("Ошибка подключения индикатора к графику"); // подключаем индикатор к графику
         }
      }
   }
2019.11.30 13:43:40.749 Core 1    period_HMA7C=12
2019.11.30 13:43:40.749 Core 1    shift_correction_HMA7C=21
.................
2019.11.30 13:43:40.749 Core 1  2018.04.01 00:00:00   Получен хендл индикатора handle_HMA7C
2019.11.30 13:43:40.749 Core 1  2018.04.13 00:00:00   ОШИБКА >>>>> спред (44) больше допустимого (25) <<<<<


 
RickD:

There are no folders in the tester for Expert Advisors either. But MQLInfoString(MQL_PROGRAM_NAME) returns the same value when testing an Expert Advisor.

I need the same value to associate the version under test with the version on the chart using named channels.

I see. Let's correct

 
Slava:

I see. Let's correct

In MT4, MQLInfoString(MQL_PROGRAM_NAME) returns the indicator + extension: "MyIndicator.mq4".

This can also be corrected, if relevant.

 

The pause, is present on the chart and is successfully counted by the orders. But it is not in the list on the left...

It appears occasionally, rarely.
 

Guys, updated the terminal and I'm getting messages in the marketplace

has newer unsupported version, please update your client terminal

I understand that the tester version in the market is not up to date...

 
Vladimir Pastushak:

Guys, updated the terminal and I'm getting messages in the marketplace

I take it the marketplace version of the tester is not up to date...

Remove from your EA

input group

- this keyword is not supported in the Market, until all servers are updated at all companies.

 
Also, the optimisation regularly hangs up at the start. The START button stays pressed (turns pink), a new chart window appears, but nothing happens. This can be fixed by turning the terminal off and on.