Errors, bugs, questions - page 2204

 
Alexey Navoykov:

What do you mean?

just sarcasm.

a100 and fxsaber are the undoubted leaders in bug reporting.

i suspect that they are more efficient than the entire QA team of metaquotes.

 
Комбинатор:

just being sarcastic.

a100 and fxsaber are undoubted leaders in bug reporting. a100 bugs almost exclusively language bugs.

I suspect that they work more efficiently than the entire full-time QA team of metaquotes.

any C++ programmer, from linux development resources, will report a bunch of bugs, but he will be wrong because these bugs will be in C++, but mql5 is a different language

As far as I understand, fxsaber is studying mql5 programming, but I don't understand his argument with the developers about the history:

1. they do not need the advice of others, they react to it painfully and harshly, which makes many people confused.

2. I think the developers waste their effort on the tester, which is only needed to check the algorithms for errors in trading, there is no grail in trading and no selection of parameters will fix it, if the trading system is not working, you may as well as hell not make a profit on real trading

the main thing is that the terminal doesn't malfunction and the API is stable, the first one has been reached, with the second one you sometimes have to edit the code after the updates

 
Alexey Navoykov:

With Sleep from Kernel, it was possible to suspend testing. Everything works as it should. Thank you!
 
Nikolai Semko:

Oh, shit!!!
Even his page is missing.
It's not funny...

Didn't he eject himself?
Hopefully to be resurrected under a different name.

everything has its limits.

I think this thread is going into oblivion.

 

I don't understand it myself, but for some reason I think it has something to do with the branch

 
Please look up the bug: https://www.mql5.com/ru/forum/242114
Бага с открытием графика тестера стратегий(галочка визуализация). MetaTrader5.
Бага с открытием графика тестера стратегий(галочка визуализация). MetaTrader5.
  • 2018.05.02
  • www.mql5.com
Шаги воспроизведения. 1) Открываем тестер стратегий. 2) Выбираем эксперта для тестирования и нужную дату. 3) Обязательно галочку визуализация...
 

Updated the terminal to version 1816.

Compiled EA on new compiler version.

I put my EA on a chart and get EX5 loading failed.

I have compiled everything on my old compiler and it seems to work.

And so with almost all EAs, except very simple ones.

Files:
temp2.ex5  84 kb
 
Can you suggest a function that returns the closing time (on Friday) for a currency pair?
 
Andrii Djola:
Can you tell me the function that returns the closing time (on Friday) for a currency pair?

I've recently written a function like this, so try and figure it out for yourself,

If you fail, I'll explain.

bool cFunctions::TimeToTradeSpecification()
{
   datetime dt_From;
   string   s_From;
   int      i_FromHours;
   int      i_FromMinutes;
   
   datetime dt_To;
   string   s_To;
   int      i_ToHours;
   int      i_ToMinutes;
   datetime dt_Cur;
   string   s_Time;
   bool     b_Result = false;
   ENUM_DAY_OF_WEEK  e_DayOfWeek = TimeDayOfWeek(TimeCurrent());    
   uint              i_SessionIndex;
   
   dt_Cur = TimeCurrent();
   
   s_Time = TimeYear(dt_Cur)+ "." + TimeMonth(dt_Cur) + "." + TimeDay(dt_Cur) + " ";
   
   i_SessionIndex = 0;
   SymbolInfoSessionTrade(Symbol(),e_DayOfWeek,i_SessionIndex,dt_From,dt_To);
   i_FromHours   = TimeHour(dt_From);
   i_FromMinutes = TimeMinute(dt_From);
   i_ToHours     = TimeHour(dt_To);
   i_ToMinutes   = TimeMinute(dt_To);

   s_From = s_Time + i_FromHours + ":" + i_FromMinutes; 
   
   s_To  =  s_Time + i_ToHours   + ":" + i_ToMinutes; 
   
   dt_From = StringToTime(s_From);
   dt_To   = StringToTime(s_To);
   if (TimeCurrent() >= dt_From && (TimeCurrent() <= dt_To || (i_ToHours == 0 && i_ToMinutes == 0)))
      b_Result = true;   
//
   i_SessionIndex = 1;
   SymbolInfoSessionTrade(Symbol(),e_DayOfWeek,i_SessionIndex,dt_From,dt_To);
   i_FromHours   = TimeHour(dt_From);
   i_FromMinutes = TimeMinute(dt_From);
   i_ToHours     = TimeHour(dt_To);
   i_ToMinutes   = TimeMinute(dt_To);

   s_From = s_Time + i_FromHours + ":" + i_FromMinutes; 
   
   s_To  =  s_Time + i_ToHours   + ":" + i_ToMinutes; 
   
   dt_From = StringToTime(s_From);
   dt_To   = StringToTime(s_To);
   if (TimeCurrent() >= dt_From && (TimeCurrent() <= dt_To || (i_ToHours == 0 && i_ToMinutes == 0)))
      b_Result = true;   
   
   return(b_Result);
}
//+------------------------------------------------------------------+
 

Decorative question.

Am I the only one who thinks that if the colours of the labels were matched to the background and text of the graphic, it would be more convenient to switch the graphics?

Reason: