Download MetaTrader 5

Discussion of article "MQL5 Programming Basics: Strings"

To add comments, please log in or register
MetaQuotes Software Corp.
Moderator
182567
MetaQuotes Software Corp. 2013.04.11 16:14 

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
31167
Alain Verleyen 2013.04.11 19:24  

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
6976
Alexander Piechotta 2013.04.14 20:35  
Thanks.
Muhammad Syamil Bin Abdullah
897
Muhammad Syamil Bin Abdullah 2013.12.01 14:06  
Good article, thanks.
To add comments, please log in or register