Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal


Simulator regular expressions - script for MetaTrader 5

Vladimir Karputov | English Русский 中文 Español Deutsch 日本語 Português

votes: 16
2017.01.19 16:31

The script allows you to try regular expressions.

Materials on 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

(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

In other words, we should find the following string:

int OnInit()

Translated from Russian by MetaQuotes Software Corp.
Original code:

BB stops - rsi BB stops - rsi

BB stops — RSI version.

BB Stops BB Stops

Well known BB Stops (Bollinger Bands Stops) indicator with some additions and further adapting to MetaTrader 5 usage.

ZigZag_MFI ZigZag_MFI

ZigZag based on MFI oscillator.

ZigZag_RSI ZigZag_RSI

ZigZag based on RSI oscillator.