MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  String functions  StringFind

 
Use the opportunities of
MQL5 in MetaTrader 5
Study the new MQL5 language
Study the new MQL5 language.
Reference is already available
int StringFind( string text, string matched_text, int start=0)
Search for a substring. Returns the position in the string from which the searched substring begins, or -1 if the substring has not been found.
Parameters:
text   -   String to search in.
matched_text   -   Substring to search for.
start   -   Position in the string to start search from.
Sample:
  string text="The quick brown dog jumps over the lazy fox";
  int index=StringFind(text, "dog jumps over", 0);
  if(index!=16)
    Print("oops!");