Download MetaTrader 5

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


Nonparametric Zig Zag, A-la Clyde Lee Patterns - indicator for MetaTrader 5

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

votes: 17
2011.01.31 13:32
2016.11.22 07:32
clzzi.mq5 (11.37 KB)view

The upward ZigZag segment starts when bullish (rising) patterns for High and Low has appeaed on the current bar. The same is for the downward ZigZag segments. The ZigZag line (ZigZagLineBuffer) is plotted starting from the beginning of the segment up to begining of the opposite segment.

The number under the bar indicates the pattern index (P0..P4) of the "Low bars a-la Clyde Lee". The number above the bar (P5..P9) indicates the index of the a-la Clyde Lee High bars.

The indicator doesn't repaint.

I think that this ZigZag can be used to convert the chart into the segments for further analysis.

Nonparametric Zig Zag, A-la Clyde Lee Patterns

Translated from Russian by MetaQuotes Software Corp.
Original code:

A la "Bobsley" Expert Advisor A la "Bobsley" Expert Advisor

The Expert Advisor uses the Moving Average and Stochastic indicators.

Hash functions library Hash functions library

The library contains the following hash functions: adler32, CRC-32, MaHash8v64. Also it has functions for radix conversion of a number.

Nonparametric Zig Zag, Out of Price Walk Nonparametric Zig Zag, Out of Price Walk

Nonparametric zigzag. The monotonicity condition for the ascending segment of the zigzag: the High of the any subsequent bar should not be lower than any Low of the ascending segment.

Multicurrency OnTick (string symbol) event handler Multicurrency OnTick (string symbol) event handler

This is the simplified implementation of multicurrency mode in MetaTrader 5. It isn't necessary to consider the details how does it work. It has minimum settings and simple structure. It can be used in Strategy Tester.