This indicator is a ported MQL5 indicator from http://www.mql5.com/en/code/278.
Nonparametric zigzag. The monotonicity condition for the ascending segment of the zigzag: the High of any subsequent bar must not be lower than any Low of the ascending segment. Similarly, for the descending segments of the zigzag.
Download:
The indicator was revised and updated