거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Twitter에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
스크립트

Regular Expressions Tester MQL4 - MetaTrader 4용 스크립트

조회수:
8801
평가:
(6)
게시됨:
2018.02.20 12:14
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Materials on Regular Expressions


Other Useful Materials


Most Useful CRegex Class Methods

  • IsMatch() - Checks whether the regular expression finds a match in the input string.
  • Matches() - Searches an input string for all occurrences of a regular expression and returns all the matches.
  • Replace() - In a specified input string, replaces strings that match a regular expression pattern with a specified replacement string.
  • Split() - Splits the subject string along regex matches, returning an array of strings. The array contains the text between the regex matches (i.e. split performs inverse match).


How to use regular expressions in MQL4 programs

#include <RegularExpressions\Regex.mqh>

bool found = CRegex::IsMatch("subject_text", "regex_pattern")

CMatchCollection *matches = CRegex::Matches("subject_text", "regex_pattern")

string new_string = CRegex::Replace("subject_text", "regex_pattern", "replacement")

string parts[];
CRegex::Split(parts, "subject_text", "regex_pattern");
Save and show the objects of testing chart Save and show the objects of testing chart

After back testing, we usually need to analyze the testing result on a new chart which we have loaded our template,in this case we need to copy the objects on the testing chart to the new chart. This script helps to save the objects into a file and show the objects on a new chart.

s-Downloader.mq4 s-Downloader.mq4

The script downloads history for all timeframes and symbols in the Market Watch.

MA Cross Studies MA Cross Studies

Simple program using the moving average as bias and providing many trade and money management options.

Open two Market orders in opposite directions Open two Market orders in opposite directions

Can be used for hedging or trading breakout systems.