ZigZag based on MFI oscillator.

Fig.1. ZigZag_MFI indicator
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/16576
Simulator regular expressions
The script allows you to try regular expressions.
BB stops - rsi
BB stops — RSI version.