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

2016.10.10 15:29

Simple ZZ Consolidation Zones - indicator for MetaTrader 5

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

votes: 6

More experiments with the Simple ZigZag indicator. A small upgrade allows the indicator to find and mark the price consolidation areas with colored rectangles.

The Simple ZigZag indicator is the development of an idea of automated visualization of technical analysis. We have started with a simple indicator Simple ZigZag that plots local Highs and Lows on a chart. Our task now is to learn to recognize different patterns of technical analysis using the above indicator.

The proposed indicator searches for flat consolidation zones on a price chart.

The number of highs/lows required for constructing a zone, the total number of analyzed zigzag points, and the accuracy of matching of extrema are defined by the three parameters of the indicator:

  • Number of times the price touches the level.
  • Number of ZZ points analyzed.
  • High/low max. deviation around level.

The fourth parameter - Typical retracement size - is inherited from the parent indicator (Simple ZigZag).

Indicator fine tuning is performed by three parameters with forth inherited from parent indicator Simple ZZ.

The areas where several highs make up a line in the upper part of the zone are marked in red; the areas where several lows make up a line in the lower part of the zone are marked in blue. As for now, the indicator cannot be built into an Expert Advisor, because it doesn't have appropriate buffers for the area borders (expected later). We will further continue to complicate the recognized patters, and will adapt the indicator for use in automated trading systems.

Simple ZigZag helps in searching for consolidation zones.

Translated from Russian by MetaQuotes Software Corp.
Original code:

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

Average Directional Movement Index (ADX) Average Directional Movement Index (ADX)

The Average Directional Movement Index Indicator (ADX) helps to determine if there is a price trend.

TP-SL_Removing TP-SL_Removing

Immediately deletes the SL/TP of all positions.

Closed_TOTAL Closed_TOTAL

Total closure of all positions (winners/losers). You can also select which are of a single instrument.