![Documentation on MQL5: String Functions / StringSplit Documentation on MQL5: String Functions / StringSplit](https://c.mql5.com/36/59/documentation-on-mql5-string-functions__1.png)
Documentation on MQL5: String Functions / StringSplit
- www.mql5.com
StringSplit - String Functions - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
Ha-yun: given that this would be done on every iteration?
-
Why every iteration? What is changing?
Don't worry about performance, until you have a problem. Then, and only then, use the profiler, find the problem, fix the problem, and remeasure.
-
With a single character separator: StringSplit.
Otherwise: How to split a string with another string - general - MQL5 programming forum #3 (2020)
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Example string: abc;def;ghi
Imagine a function that runs 1000 times, what would be the most efficient way to split this string and get its values, given that this would be done on every iteration?