Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 314

 

Confused by the winAPI info... Can anyone help with one question?

Is it possible to open a menu in navigator and send a command to press the "Refresh" option ? Assuming there can be more than one terminal

 
Vasili Taucci:

Confused by the winAPI info... Can anyone help with one question?

Is it possible to open a menu in navigator and send a command to press the "Refresh" option ? Assuming there can be more than one terminal

Why such a perversion? What's wrong with ChartRedraw

ChartRedraw - Операции с графиками - Справочник MQL4
ChartRedraw - Операции с графиками - Справочник MQL4
  • docs.mql4.com
ChartRedraw - Операции с графиками - Справочник MQL4
 
Alexey Viktorov:

Why such a perversion? What's wrong with ChartRedraw

Refresh and ChartRedraw() are different. When you refresh, the history is downloaded, of course.
 
Artyom Trishkin:
Refresh and ChartRedraw() are different. When you refresh, the history is still swapped out.

In fact, my glasses are fogged up.


The question was about the NAVIGATOR context menu...

 
Vitaly Muzichenko:

This is, as I understand it, a template for an advisor. With the name, Artem said it right.


Yes, absolutely right. It is a template. At first I thought to make a separate indicator, but then I decided to include the search condition for pattern in my EA

 
Aleksey Vyazmikin:

Do you even need an EA or an indicator?

An indicator would be better...

I mean that checking for a new bar may be done forcedly on H4, not on the current timeframe.


Yes,Aleksey Vyazmikin, you are absolutely right. I need the arrow to be drawn exactly when a new 4-hour bar appears after the Doji. The only thing I need is to be able to be on m5 (for example)

I have implemented it in the following way:

//+------------------------------------------------------------------+
//    Функция определения нового бара
//+------------------------------------------------------------------+
void Fun_New_Bar()                              // Ф-ия обнаружения нового бара 
  {                                             
  datetime TimeBar0 = iTime(Symbol(),PERIOD_H4,0);
   static datetime New_Time=0;                  // Время текущего бара 
   New_Bar=false;                               // Нового бара нет 
   if(New_Time != TimeBar0)                        // Сравниваем время 
     { 
      New_Time = TimeBar0;                         // Теперь время такое 
      New_Bar = true;                             // Поймался новый бар 
     } 
  }  

The arrows are not drawn up, I do not know what the reason is. Broke my head already

 

Hello. I downloaded the EUR USD 1 minute quote file from Ducascopy, trying to import it into MT4 Alpari, nothing happens. Just a blank conversion window. Same on Instaforex. What can it be?

 
Luchezar Shalomaev:

Hello. I downloaded the EUR USD 1 minute quote file from Ducascopy, trying to import it into MT4 Alpari, nothing happens. Just a blank conversion window. Same on Instaforex. What can it be?

Are you going to trade in Dukascopy? No? Then why do you need their quotes?

 
Vitaly Muzichenko:

Will you be trading in Dukascopy? No? Then why do you need their quotes?


I need Alpari's quotes but I couldn't find any from them.

 
Luchezar Shalomaev:

I need quotes from Alpari but I couldn't find any from them.

They have enough history to test EAs