Errors, bugs, questions - page 573

 

If I write on the date-17.11.2011 the comment should be on top. :)

 

Or should the comment from 16 be on top?

The answer is no - the tester is the answer?

 
Konstantin83:

I want to unload the data for January 2009. I have unloaded data for 15 minutes and hour, but I can't unload the data for 5 minutes, it says there is no history. Why is not downloaded history of 5 minutes?

I think I figured it out. The tester uploads the data automatically, and I have to download the history to the terminal myself.
 
mario065:

Hello,

I, after testing and enabling optimisation, get this:

Core 1 genetic pass (127, 1195) tested with error "critical runtime error

The test is normal.

Look at the full logs of the agent on which this pass was run.

 
alexvd:

Look at the full logs of the agent on which this pass was performed.

Looked it up-justified. It's OK.
 


The agent is asleep...

I've found in my profile that one of the agents has not been active since November 12. Given the problems with the 540 build, nothing seems strange. It's already customary that agents are constantly contacting servers, but don't receive tasks.

Checking log folder: last log was dated 13th of November. At the same time the agent manager shows the status as "running". The neighbouring agent is active.

The machine (netbook) hasn't rebooted in quite a while. Of the situations falling under suspicion were hibernation with almost empty battery and, of course, connection interruptions of different nature (modem hang-ups, switching to another provider and back)...

 
The MathCeil function returns a value of double, although it would be more logical to use int.
Документация по MQL5: Математические функции / MathCeil
Документация по MQL5: Математические функции / MathCeil
  • www.mql5.com
Математические функции / MathCeil - Документация по MQL5
 

Tell me how to write multicurrency, my multicurrency shows different results depending on which pair to put it on in the tester.

Such problem in onTick, and in onTimer function, and they also have differences

it means when testing just 1 pair I get a lot of variants, and I can't optimize

Документация по MQL5: Основы языка / Функции / Функции обработки событий
Документация по MQL5: Основы языка / Функции / Функции обработки событий
  • www.mql5.com
Основы языка / Функции / Функции обработки событий - Документация по MQL5
 
Lazarev:

Tell me how to write multicurrency, my multicurrency shows different results depending on which pair to put it on in the tester.

Such problem in onTick, and in onTimer function, and they also have differences

I.e. while testing just 1 pair I get a lot of variants - I can't optimize

The difference is in the input of the information.

https://www.mql5.com/ru/articles/234

Реализация мультивалютного режима в MetaTrader 5
Реализация мультивалютного режима в MetaTrader 5
  • 2011.01.10
  • Konstantin Gruzdev
  • www.mql5.com
Интерес к мультивалютному анализу и мультивалютной торговле существует давно. Но только с выпуском в свет терминала MetaTrader 5 и языка программирования MQL5 появилась возможность реализации полноценного мультивалютного режима. В данной статье предложен способ, позволяющий проводить анализ и обработку всех поступающих тиков по множеству финансовых инструментов. В качестве иллюстрации рассмотрен мультивалютный индикатор RSI для индекса доллара USDx.
 

I start optimization of a single-currency Expert Advisor, I get errors

2011.11.20 10:11:56 Core 1 genetic pass (5, 16006708415) tested with error "critical runtime error"
2011.11.20 10:11:55 Core 1 genetic pass (0, 47086630498) tested with error "critical runtime error"
2011.11.20 10:11:52 Core 2 genetic pass (3, 63311127073) tested with error "critical runtime error"
2011.11.20 10:11:48 Core 2 genetic pass (2, 6193316153030) tested with error "critical runtime error" 20 10:11:48 Core 2 genetic pass (2, 61933161530) tested with error "critical runtime error"
2011.11.20 10:11:43 Core 2 genetic pass (1, 15907465424) tested with error "critical runtime error"
2011.11.11.20 10:11:42 Core 2 common synchronization completed
2011.11.20 10:11:42 Core 2 authorized (agent build 540)

Optimization results tab does not show the parameters that caused the error, the tester logs show the following

LF 0 Night_v3_27 (USDCHF,M5) 10:44:47 2011.01 00:00:00 Error code: 0; Description: Operation successful
FK
0 Night_v3_27 (USDCHF,M5) 10:44:47 2011.01 00:0101 00:00:00 Test 1
HN 2 Symbols 10:44:47 no prices for symbol USDCHF
NH 2 Symbols 10:44:47 no prices for symbol USDCHF
DQ 2 Symbols 10:44:47 no prices for symbol USDCHF
JK 2 Symbols 10:44:47 no prices for symbol USDCHF
PE 2 Symbols 10:44:47 no prices for symbol USDCHF
FN 2 Symbols 10:44:47 no prices for symbol USDCHF
LK 0 Night_v3_27 (USDCHF,M5) 10:44:47 2011.01.01 00:00:00 Error code: 0; Description: Operation successful
DE 0 Night_v3_27 (USDCHF,M5) 10:44:47 2011.01.01 00:00:00 Test 2
FQ 2 Symbols 10:44:47 no prices for symbol USDCHF
LK 2 Symbols 10:44:47 no prices for symbol USDCHF
RE 2 Symbols 10:44:47 no prices for symbol USDCHF
HN 2 Symbols 10:44:47 no prices for symbol USDCHF
NH 2 Symbols 10:44:47 no prices for symbol USDCHF
DQ 2 Symbols 10:44:47 no prices for symbol USDCHF
JH 0 Night_v3_27 (USDCHF,M5) 10:44:47 201101.01 00:00:00 Error code: 0; Description: Operation successful
ER 0 Night_v3_27 (USDCHF,M5) 10:44:47 2011.01.01 00:00:00 Test 3

Where the Test comment comes out in the next block

CSymbolInfo       Exp_Symbol_Info;           // symbol info object  

if(!SymbolInfoInteger(Exp_Symbol,SYMBOL_SELECT))
     {
      if(GetLastError()==ERR_MARKET_UNKNOWN_SYMBOL) return(false);
      ResetLastError();
      if (SymbolSelect(Exp_Symbol, true))
       {
        Print("Символ " + Exp_Symbol + " выбран в окне MarketWatch.");
       }
      else
       {
        Print("Произошла ошибка при выборе символа " + Exp_Symbol);
        GetMyLastError(GetLastError());
       }
     }
   ResetLastError();
   GetMyLastError(GetLastError());
   Print("Test 1");

   if (!Exp_Symbol_Info.Name(Exp_Symbol))
    {
     return(false);
    }

   ResetLastError();
   GetMyLastError(GetLastError());
   Print("Test 2");

   Exp_Symbol_Info.Refresh();
   Exp_Symbol_Info.RefreshRates();
   ResetLastError();
   GetMyLastError(GetLastError());
   Print("Test 3");

It turns out, that the error is output when a standardCSymbolInfo trading class is initialized?