I do not recommend to use this function because it works differently in MQL5 than in MQL4. Consequently, it may be hard to understand when you switch to MQL5
But maybe I'm wrong...
mql4
mql5
As you can see, mql5 is very similar to simple addition of strings.
And type conversion takes place in this function without any additional worries.
Yes, it's been discussed before.
of the three options StringAdd() , StringConcatenate() and pluses,
Why can't 1.6251 be cast to string as explicitly as i? It's shorter and saves computational resources..... it seems to me.
Thanks for the explanation.
Because such conversion can give a value of up to 16(if my brains haven't completely dried up) characters. And DoubleToString() "trims" the string to the specified number of decimal places. An integer i will remain an integer no matter how you spin it.
Can you tell me how to make Print(), print once when the value changes
I like the boolean options better
if(Work==false) // Критическая ошибка
{
if(AlertWork==false) // Если Алерта еще не было
{ Alert("Critical error. The expert Advisor doesn't work."); AlertWork=true; }
return;
}
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.
And here's the interesting thing I noticed... I didn't pay attention to this difference.
In mql4, if you write this addition of strings through the StringConcatenate() function, then you get
and in mql5 it just
Maybe I'm mistakenly not using this............I do not recommend to use this function because it works differently in MQL5 than in MQL4. Consequently, it may be hard to understand when you switch to MQL5
But maybe I'm wrong...
mql4
mql5
As you can see, mql5 is very similar to simple addition of strings.
And type conversion takes place in this function without any additional worries.Yes, it's been discussed before.
of the three options StringAdd() , StringConcatenate() and pluses,
pluses are less costly.
Why can't 1.6251 be cast to string as explicitly as i? It's shorter and saves computational resources..... it seems to me.
Thanks for the explanation.
Because such conversion can give a value of up to 16(if my brains haven't completely dried up) characters. And DoubleToString() "trims" the string to the specified number of decimal places. An integer i will remain an integer no matter how you spin it.
Yes, it was discussed once, I won't look for it
of the three options StringAdd() , StringConcatenate() and pluses,
pluses are less costly.
Changed the code, still array out of range in the same place
double price[N];always takes valid values?
Can you tell me how to make Print(), print once when the value changes
Tell me how to make Print(), print once when the value changes
Set counter
Set the meter
Set the meter
Can you tell me how to make Print(), print once when the value changes
I like the boolean options better