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


ZZ Color Retracement - indicator for MetaTrader 5

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

votes: 18
2016.10.10 15:33

The ZZ Color Retracement based on the Simple ZigZag indicator. In addition to the functionality of the base indicator, the Color Retracemnt analyzes the length of wave movements, highlighting the longer impulse movements in blue and the shorter retracements in red. Medium sized waves are highlighted in gray.

Automation of many graphical constructions, including simple ones like channels, trends (higher highs / lower lows) or Fibo grids, requires defining a "refined movement", i.e. price passing from local minimum to local maximum and from local maximum to local minimum. The ZigZag indicator is most efficient in searching for such movements, as well as in looking for local Highs and Lows.

I have already proposed a simple algorithm for searching local Highs and Lows implemented in Simple ZigZag. The main difference of Simple ZigZag from the conventional one is the much more simple and fast algorithm, as well as the single parameter — typical correction depth.

The ZZ Color Retracement indicator is the development of the idea of automating analytical ZigZag-based constructions. In particular, the indicator detects significant impulse movement and colors them in blue. Short corrective movements are shown in red, while medium flat areas are painted in neutral gray.

The following inputs are used to adjust the indicator:

  • Typical retracement size — is inherited from the parent indicator — Simple ZigZag.
  • Moves averaging period — number of ZigZag movements used for calculating the "average movement".
  • Percentage difference — the threshold ratio of the last ZigZag movement to the moving average pass. If the ratio exceeds 1 + parameter, the movement is considered to be impulse; if it is lower than 1 - parameter, the movement is considered to be corrective; if it is in the middle ([1 - parameter, 1 + parameter]), the movement is flat.

Indicator ZZ Color Retracement uses three parameters.

Now, that we have made ZigZag to detect impulse passes, our next step is to apply the Fibo grid.

ZZ Color retracement could differentiate impulse moves and retracements

Translated from Russian by MetaQuotes Software Corp.
Original code:

i-CAiChannel_HTF i-CAiChannel_HTF

The i-CAiChannel indicator with the timeframe selection option available in input parameters.

Exp_i-CAi_StDev Exp_i-CAi_StDev

Trading system based on the signals of the i-CAi_StDev indicator.


Oscillator with calculations using an algorithm similar to Kaufmann's AMA.

DSSBressertSign DSSBressertSign

Semaphore signal indicator based on the DSSBressert indicator algorithm.