Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1417
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
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