A question for MQL connoisseurs - page 2

 
Rita:

Remove the tick and you get something like this:


 

Thank you. The beam is working.

But the indicator https://www.mql5.com/ru/code/8752 is still not working. I drew a vertical line, EURUSD+ pair name and a "history" section.

An empty indicator window opens, but the equity graph of the specified section is not displayed.

 
Rita:

Thank you. The beam is working.

But the indicator https://www.mql5.com/ru/code/8752 still doesn't work. I set the vertical line, the name of the pair and the "history" segment.

An empty indicator window opens but the equity graph of the specified segment is not displayed.

1. Try setting the line colour to Blue or Red.

2. Try to reread the instructions of the indicator.

3. There are no quotes on weekends, so try doing an "Update" on the PMP on the chart so that the indicator buffer fills up with the calculated indicator values.

4. If nothing helps.... Then I don't know what to do. Ask the developer for support.

 
Okay. I'll give it a try.
 

Yeah, - thanks again. The blue line seems to be starting to work.

 

There is another glitch in mt4.

At start (constantly), and also at opening the minimized window MT4 (in 80 % of cases.) it is not clear why all menu options lines of MT4 are rearranged - "one under another", reducing the height of the chart.

It is very annoying sometimes. I have to constantly drag those rulers "backwards".

Why does this happen and how can I eliminate this glitch? Please advise, who knows.

 
Rita:

On startup (permanently) and also when the minimised MT4 window is opened

On startup this happens if you try to start a terminal that is already running. Is the mouse not a radio? Try to check with keyboard, highlight the shortcut, then run it with the launcher.

I haven't encountered it when unfolded.

 

No, the mouse is not a radio. It's found that this usually happens when the processor is overloaded.

I will now follow up with a question at https://www.mql5.com/ru/forum/116261/page15

 

Good afternoon.

I've spent half a day and can't figure it out.

I need the names of the analysed instruments and the colours of their respective lines to be displayed in the right corner of the bottom indicator window, like this :

I can't achieve it in any way! I.e. at initial compilation these text marks appear on the right side.

After the reload of MT4 or after the new indicator installation on the chart the text disappears, see below. :

I don't understand why it's like that.

I have written a function to display these lines:

void object(string name, string _text, int fontsize, color color_, int value) {
 ObjectCreate(name+ WindowExpertName(), OBJ_LABEL, WindowFind(WindowExpertName()), 0, 0);
 ObjectSetText(name+ WindowExpertName(), _text, fontsize, "Times New Roman", color_);
 ObjectSet(name+ WindowExpertName(), OBJPROP_CORNER, 1);
 ObjectSet(name+ WindowExpertName(), OBJPROP_XDISTANCE, 4);
 ObjectSet(name+ WindowExpertName(), OBJPROP_YDISTANCE, value); 
                                     }

I call this function in the START function for each symbol respectively:

 int start() {
     int limit;  int counted_bars=IndicatorCounted();
  //---- проверка на возможные ошибки
     if(counted_bars<0) return(-1);
  //---- последний посчитанный бар будет пересчитан
     if(counted_bars>0) counted_bars-=10;
     limit=Bars-counted_bars;
  //---- основной цикл
     for(int i=0; i<limit; i++)
       {
       Symbol1[i]=.....  ;
       Symbol2[i]= ..... ;
       Symbol3[i]= ..... ; 
       Symbol4[i]= ......;       
       SymbolE[i]= ..... ;      
      
      object("B1", Symbol_1, 10, Color_1, 5);
      object("B2", Symbol_2, 10, Color_2, 15);
      object("B3", Symbol_3, 10, Color_3, 25);
      object("B4", Symbol_4, 10, Color_4, 35);
      object("B5", Symbol_E, 10, Color_5, 45);
     
   }
   return (0);
}
     

Please tell me what may be the error here ? May it be in an INIT function?

Because in the log there is a constant popping up of :

 

The init function is implemented like this:

int init() {
    IndicatorShortName("CC-STOKS ");
   SetIndexStyle(0, DRAW_LINE, STYLE_SOLID, 2, Color_1);
   SetIndexBuffer(0, Symbol1);
   SetIndexStyle(1, DRAW_LINE, STYLE_SOLID, 2, Color_2);
   SetIndexBuffer(1, Symbol2);
   SetIndexStyle(2, DRAW_LINE, STYLE_SOLID, 2, Color_3);
   SetIndexBuffer(2, Symbol3);
   SetIndexStyle(3, DRAW_LINE, STYLE_SOLID, 2, Color_4);
   SetIndexBuffer(3, Symbol4);
   SetIndexStyle(4, DRAW_LINE, STYLE_SOLID, 2, Color_5);
   SetIndexBuffer(4, SymbolE);
   
   return (0);
}
Reason: