[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 675
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
The indicator does not rewrite the comments, but adds with each measure
here is the code, this is the end of the start() function
The indicator does not rewrite the comments, but adds with each measure
here's the code, this is the end of the start() function
Of course it does :)
Try deleting this entry and it should work.If the textbook declares arrays this way, it's quite strange. Would you have highlighted with a comment the section of code that YOU contributed.
I haven't read that textbook either. And how does the author there justify the validity of this array declaration?
That's what I highlighted =) here it is:
double Macd_M_D1=iMACD(NULL,1440,12,26,9,PRICE_CLOSE,MODE_MAIN,0);
// Вверху - обращение к МАКД расчет на дневках основной линии
double Macd_S_D1=iMACD(NULL,1440,12,26,9,PRICE_CLOSE,MODE_SIGNAL,0);
// Это обращение к МАКД и расчет Сигнальной линии на дневках
double Macd_M_H4=iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_MAIN,0);
// Это обращение к МАКД и расчет основной линии на текущем таймфрейме
double Macd_S_H4=iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_SIGNAL,0);
// Это обращение к МАКД и расчет сигнальной линии на текущем таймфрейме
//-------------------изменения----^-----------------------------------
string Nom_Lin =Line + "_"; // Строка - номер линии
// string Nom_Lin = DoubleToStr(Line,0)+"_";// Можно и так
string Str_Time=TimeToStr(T_Bar); // Строка - время откр.
string His_Name=Prefix+Nom_Lin+Str_Time;// Имя созаваемого объект
//-------------------изменения-------V--------------------------------
if ((Macd_M_D1 < Macd_S_D1)&&(Macd_M_H4 < Macd_S_H4))Color=Blue;if ((Macd_M_D1 > Macd_S_D1)&&(Macd_M_H4 > Macd_S_H4))Color=Red;
//
//if (O_Bar < C_Bar) Color=Blue; // Выбор цвета в зависимости..
//if (O_Bar > C_Bar) Color=Red; // .. от характеристик бара
//if (O_Bar ==C_Bar) Color=Green;
//-------------------изменения------^---------------------------------
Here it is. Seems to have done everything scientifically....
Of course it does, you said so yourself :)
Try to delete this entry, it should work.Thanks, that's what I missed.
Another question, how do I get the comments into the indicator window?
Thank you, I missed that.
Another question, how do I get the comments into the indicator window?
The Comment() function is not associated with any window, there is only one place for it - the upper left corner.
To output the comments in the indicator window, you will need to use graphical objects.
The Comment() function is not associated with any window, there is only one place for it - the top left corner.
You will have to use graphical objects to display the indicator in the window.
thanks
Can you advise whether it is possible to divide the opening of trades in the EA, for example, that the EA would open trades only on every second signal?
Put a signal counter and set a flag on the second account to allow opening.
How can I see all the alerts issued by the scripts? If you have already closed the window with them. Maybe they are saved in some logs?
Always saved in MetaTrader\experts\logs