Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Still, a Label is not a Comment and a Comment is not a Label.
That is true . . . and Comment() always overwrites and existing comment.
Thanks anyway!
Thanks to You RaptorUK, I have just learned to use StringConcatenate()!
Every time I learn smth new!
BTW, I agree that using Label instead of Comment is better.
You can place the Label anywhere you want on the chart.
I use o lot of Label in my EA.
Also, could you look at my new thread: https://www.mql5.com/en/forum/140884
I still need a solution for that.
Hello friends :-)
I need some help regarding comments in mql4.
below is my code
If (condition1)
{
Comment(abc)
}
If (condition2)
{
Comment(xyz)
}
The exact problem is if both condition is true at same time , i get only only 1 comment in upper left corner..
I need both comments in 2 lines
Please suggest ideas.Thanks
Hello friends :-)
I need some help regarding comments in mql4.
below is my code
If (condition1)
{
Comment(abc)
}
If (condition2)
{
Comment(xyz)
}
The exact problem is if both condition is true at same time , i get only only 1 comment in upper left corner..
I need both comments in 2 lines
Please suggest ideas.Thanks
Hello everyone,
Just reset the condition to true if the other condition is false via versa. turn both to false if both conditions exit.
General rules and best pratices of the Forum. - General - MQL5 programming forum
General rules and best pratices of the Forum. - General - MQL5 programming forum
I just learnt and would like to share. Thanks to the community.
Use static string variable and add to the static string variable every time condition is true.