Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 159
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
if by year, it may go something like this
Original - thank you! By quarters would have to control the number of days in each quarter, adjusted for leap year, apparently...
It works
2017.03.20 21:39:02.802 StringReplace EURUSD,M15: 999.99 = 999.99
Hmm..., where is the logic or description in the help that another string variable should be created - I guess I should figure it out myself...
Thanks for the example.
Original - thank you! By quarters I'll have to control the number of days in each quarter, corrected for the leap year, apparently...
Hmm..., where's the logic or description in the helpe of the fact that another string variable has to be created - well, I guess I'll have to figure it out myself...
Thanks for the example.
You don't need another variable. The result is written to the existing one. Victor just saved its initial value, nothing more.
Then I can't understand why I don't have a comma in my case...
Look at what StringReplace() returns.
And then think about what value you're assigning to str_avrMassSell
Look at what StringReplace() returns.
And then think about what value you're assigning to str_avrMassSell
I convert a number to a string and then look for a full stop and change it to a comma - what am I doing wrong?
I convert a number to a string and then look for a full stop and change it to a comma - what am I doing wrong?
And have a look in the help to see what StringReplace() returns ?
Here... are there more functions like this? Fallen victim to stereotypical thinking...
Maybe there are some - I can't remember everything. About this remembered because a long time ago, at the dawn of the formation, myself ran into the same thing. If I can't remember anything, I always consult the Help. Thank goodness it's not hard to put the cursor on a function and press F1.
Yeah, you should be more careful - I used the helpline to find the function, but I didn't read everything, which is why I paid the price...
Thanks for the tip.