MetaTrader Libraries Description & FREE Downloads

Enhance your trading toolkit with our free Metatrader platform libraries. These libraries offer a wealth of resources to develop custom trading tools and strategies. Download the most comprehensive libraries for free and expand your trading capabilities!

Last Reviewed On:
Tues, 26 Apr 2022

String Library provides a group of useful functions intended for working with strings. The library perfectly complement built-in functions of MetaTrader. After copying the files into corresponding directories you can include the library by adding following line to your files: #include <StringLib.mqh>

    Functions:
  • String stringReplaceAll(string str, string toFind, string toReplace) - Returns a new string resulting from replacing all occurrences of toFind in this string with toReplace.
  • String stringReplaceFirst(string str, string toFind, string toReplace) - Replaces the first substring of this string that matches toFind with toReplace.
  • Void stringSplit(string& output[], string input, string token) - Splits input string into output array around given token.
  • String stringTrim(string str) - Returns a copy of the string, with leading and trailing whitespace omitted.
  • Bool stringStartsWith(string str, string prefix) - Tests if given string starts with the specified prefix.
  • Bool stringEndsWith(string str, string suffix) - Tests if given string ends with the specified suffix.
  • String stringToLowerCase(string str) - Converts all of the characters in the given string to lower case (works only with English alphabet).
  • String stringToUpperCase(string str) - Converts all of the characters in the given string to upper case (works only with English alphabet).
  • Bool stringEqualsIgnoreCase(string str1, string str2) - Compares one string to another string, ignoring case considerations (works only with English alphabet).

Risk

Forex trading can involve the risk of loss beyond your initial deposit. It is not suitable for all investors and you should make sure you understand the risks involved, seeking independent advice if necessary.

Forex accounts typically offer various degrees of leverage and their elevated profit potential is counterbalanced by an equally high level of risk. You should never risk more than you are prepared to lose and you should carefully take into consideration your trading experience.

Past performance and simulated results are not necessarily indicative of future performance. All the content on this site represents the sole opinion of the author and does not constitute an express recommendation to purchase any of the products described in its pages.