Join our fan page
Simulator regular expressions - script for MetaTrader 5
- Views:
- 3712
- Rating:
- Published:
- 2017.01.19 16:31
- Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
The script allows you to try regular expressions.
Materials on regular expressions:
- The article "Regular expressions for traders"
- The library RegularExpressions in MQL5 for working with regular expressions
Before starting the work, please copy the all_functions.mq5 text file to the "sandbox": <data folder>\MQL5\Files\. The all_functions.mq5 text file contains all functions for processing events.
The input parameters contain the (int)(.*?)(\(\)) regular expression
In other words, we should find the following string:(int) — search for the "int" word occurrence
(.*?) — any symbol except for a newline character or another separator of a Unicode string, found zero or more times, not greedy
(\(\)) — search for the "()" word occurrence
int OnInit()
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/16574
BB stops — RSI version.
BB StopsWell known BB Stops (Bollinger Bands Stops) indicator with some additions and further adapting to MetaTrader 5 usage.