Wishes for MT5 - page 38

 

Several builds already have economic news, the latest one shows these news on the chart in the form of checkboxes.

I am probably getting ahead of myself, but if everything stays as it is, the mql-interface will not be convenient.

1 I haven't found such an object as event in help, how can I get a list of these objects?

2 I have understood that each chart displays different (profile news) depending on the symbol. I have tried to use ChartWindowFind(chart_id, "XXXXXXX") but it works only for indicators. And then it will need to parse a lot of charts for all news.

I think it would be more convenient to have access exactly to the chart displayed in the"Economic Calendar" tab, it's especially important to save the cells.

PS Again, how can I turn off the news checkboxes on the chart if I don't have to?
 
Urain:

PS Again, how do you turn off the news flags on the chart if you don't have to?

Press the right button on the economic calendar table. It's there. It's true that you can enable/disable everything.
 
Lizar:
Press the right button on the economic calendar table. It's there. It's true that you can enable/disable everything.

Closed the MT, opened the checkboxes in place, not convenient to tear them down by hand all the time.

Need a preset to display or not.

 
Urain:

Closed MT, opened checkboxes in place, not convenient to have to tear them down by hand all the time.

Need a preset to display or not.

Agreed
 
Urain:

Closed MT, opened checkboxes in place, not convenient to have to tear them down by hand all the time.

Need a preset to display or not.

Calendar menu -> Show on charts -> Auto Update Off.
 
Urain:

1 while I couldn't find an object like event in the help, how can I get a list of these particular objects?

Graphical? OBJ_EVENT?
 
gip:
Graphic? OBJ_EVENT?
 
Renat:
Calendar menu -> Show on charts -> Auto Update Off.
Thanks, although I was looking in the chart properties, it would make more sense to do it there.
 

I would like to have "market open/closed" state flag, like connection state TERMINAL_CONNECTED.

Now the market is closed, but there is a connection, so there is nothing to filter this situation.

That is why the Expert Advisor in the timer fills the log with various rubbish.

By the way, the same problem in MT4, there is no way to filter looped script on this command.

 
Urain:

I would like to have "market open/closed" state flag, like connection state TERMINAL_CONNECTED.

At the moment the market is closed but the connection exists, so there is nothing to filter this situation.

That is why the EA in the timer fills the log with various rubbish.

By the way, the same problem in MT4, there is no way to filter the looped script on this command.


I have written the following code for trapping such a situation but it categorically refuses to work in the Strategy Tester while it works perfectly on a demo account

bool sesion(string sym)
  {
   datetime start,finish;
   string d1,d2;
   datetime date=TimeCurrent();
   TimeToStruct(date,str);

   string ty=string(str.year);
   string tm=string(str.mon);
   string td1=string(str.day);

   SymbolInfoSessionTrade(sym,(ENUM_DAY_OF_WEEK)str.day_of_week,0,start,finish);
   d1 = TimeToString(start,TIME_MINUTES);
   d2 = TimeToString(finish-1,TIME_MINUTES);

   datetime dd1  = StringToTime(ty+"."+tm+"."+td1+" "+d1);
   datetime dd2  = StringToTime(ty+"."+tm+"."+td1+" "+d2);

   if(date>=dd1 && date<dd2)return(true);

   return(false);
  }
Документация по MQL5: Стандартные константы, перечисления и структуры / Состояние окружения / Информация о счете
Документация по MQL5: Стандартные константы, перечисления и структуры / Состояние окружения / Информация о счете
  • www.mql5.com
Стандартные константы, перечисления и структуры / Состояние окружения / Информация о счете - Документация по MQL5
Reason: