Download MetaTrader 5

Discussion of article "MQL5 Programming Basics: Strings"

To add comments, please log in or register
MetaQuotes Software Corp.
Moderator
192430
MetaQuotes Software Corp.  

New article MQL5 Programming Basics: Strings is published:

The article covers everything you can do with strings in MQL5. It should be of interest primarily to novice MQL5 programmers, while experienced developers will have a good opportunity to summarize and systematize their knowledge.

MQL5 Programming Basics: Strings

Author: Dmitry Fedoseev

Alain Verleyen
Moderator
35040
Alain Verleyen  

According to the description of these functions in MQL5 Reference, they allow us to add up strings in a more space efficient (in terms of the occupied working memory) and faster way.

In facts there are incoherence in documentation. I don't know about memory usage, but about faster or not, StringConcatenate() is MUCH slower than StringAdd and +

2013.04.11 19:09:48    teststring (EURUSD,M1)    time for 'StringConcatenate(c,a,b)' = 1170 milliseconds, i = 1000000
2013.04.11 19:09:47    teststring (EURUSD,M1)    time for 'StringAdd(a,b)' = 94 milliseconds, i = 1000000
2013.04.11 19:09:47    teststring (EURUSD,M1)    time for 'c = a + b' = 265 milliseconds, i = 1000000


Good article, a must for all beginners.

Alexander Piechotta
7181
Alexander Piechotta  
Thanks.
Muhammad Syamil Bin Abdullah
1247
Muhammad Syamil Bin Abdullah  
Good article, thanks.
Simalb
60
Simalb  

it is nice to tire you to make us less ignorant. thank you for your work

To add comments, please log in or register