• Overview
  • Reviews (1)
  • Comments (4)
  • What's new

ZigZag Lines MTF for MT5

Multitimeframe ZigZag indicator. It displays the support/resistance lines and their breakouts, as well as draws the current targets of the market. It can also display lines of the Fractals indicator and candles from other periods (up to Quarterly). 

The indicator redraws the last (current) point, and in some cases can change the last 2-3 points.

This version is for MT5 only.

All lines are drawn as objects (not indicator buffers, but there is a possibility to receive the data for the EA).
When used in an Expert Advisor, you can read ZigZag points using iCustom. For this you need to specify the number of points in the very first parameter. The current (last) point will have an index of 0, the previous index of 1, etc.

For example:

//Calculate the last "10" points, and find out the current price-time.

   double price=iZZ(0,0);
   datetime start_time=(datetime)iZZ(1,0);
   datetime end_time=(datetime)iZZ(2,0);

double iZZ (int buff, int index)
{double ArrDouble[1];if(index<0)return(0);if(CopyBuffer(handle_ZZ,buff,index,1,ArrDouble)>0)return(ArrDouble[0]);else return(0);}


  • Mode — draw support and resistance levels based on:
    • Zig Zag — the ZigZag indicator;
    • ZigZag Close — the ZigZag Close indicator;
    • Fractals — the Fractals indicator;
    • High-Low of the period — building an indicator by high-low levels. The timeframe is specified in the Period parameter;
    • Candles only — draw only Candles;
  • Depth — the minimum number of candlestick, for which Zigzag will not draw the second maximum (or minimum), if the last one is Deviation less (or greater) than the previous one;
  • Deviation — the minimum number of points between the Highs/Lows of two adjacent candlesticks for the Zigzag to form a local top/bottom;
  • Backstep — the minimum number of candlesticks between the local Highs/Lows;
  • Period — period for calculation of ZigZag of Fractals;
  • Max bars to calculate (bars) — the maximum number of bars for calculation. This limitation is introduced to speed up the calculations;
  • Show Zigzag — show the ZigZag;
  • Show current ZZ-point (redrawing point) — show current (last) point;
  • Show Price — show the price of the levels;
  • Show Targets — show the current targets (where the market is headed);
  • Show broken lines) — show the broken levels;
  • Extend broken lines (bars) — extend the broken lines to the right by the specified number of bars;
  • Show Dot at the start of the line — display dots at the turning points of the indicator;
  • Pop up alerts — pop-up alert when touching a level;
  • Push notifications — Push-notification;
  • E-mail notifications — notification by e-mail;
  • Sound alert — sound alert when touching a level;
  • Alert when "Line breakout" — alert when the ZigZag level is broken;
  • Alert when "Changing the ZigZag direction" — alert when changing direction of ZigZag;
  • Alert when "Price is near the line" — alert if the price is near the level (once a bar, the current point of the ZigZag is not checked);
  • Distance to the line for alert (points) — distance for alert (in points);
  • Upper line color — color of the upper lines;
  • Lower line color — color of the lower lines;
  • Main line width — width of the main line;
  • Main line style — style of the main line;
  • Used line width — width of the used line;
  • Used line style — style of the used line;
  • Font size price — font size for the Prices;
  • Font size dot — font size for the Dots;
  • ZigZag color — color of the ZigZagа;
  • ZigZag width — width of the ZigZag lines;
  • ZigZag style — style of the ZigZag lines;
  • Display candles — enable the display of candles from other periods;
  • Candles period — period for the candles, all standard ones plus Quarterly;
  • Number of Candles in the past — the number of candles on the chart;
  • Shadow color — candle of the candle wicks;
  • Body color (bullish) — body candle of a bullish candle;
  • Body color (bearish) — body color of a bearish candle;
  • Save points to global variables — store points in the Global Variables of the terminal;
  • Number of points to be stored — number of points to be stored (current point is zero);
  • Prefix global variables — prefix for Global Variable names.
    Tarun Chaudhry
    Tarun Chaudhry 2018.07.06 01:06 

    The product does what it says.

    It does it very well. Happy with it.

    The options are satisfactory.

    The author is very helpful.

    I can happily recommend.

    Version 3.9 2020.04.14
    1) Fixed a new bug with displaying dots.
    Version 3.8 2020.04.14
    1) Added parameter "Show Horizontal Lines".
    Version 3.6 2019.10.30
    1) Fixed copy bug for iCustom function.
    Version 3.5 2019.10.23
    1) Added a new mode "High-Low of the period".
    2) Code optimization.
    Version 3.4 2019.04.11
    1) Added new mode "ZigZag Close".
    2) Added alert when the price is near the line.
    Version 3.3 2018.10.28
    1) Fixed a bug in the calculation of the time of the end of the line.
    Version 3.2 2018.10.14
    1) Added the ability to read points using iCustom. Points are saved sequentially in the indicator buffer.
    Version 2.31 2018.08.28
    1) Added the name of the pair, to the prefix of the global variables.
    Version 2.30 2018.08.25
    1) Added displaying the current point - "Current ZZ-point (Redrawing point)".
    2) Added options for saving points in the Global Variables. Now you can read the coordinates of points using EA.
    3) Code optimization.
    4) Fixed bug of double fractal.
    Version 2.20 2018.06.01
    1) The indicator can now draw levels using Fractals. The "Draw Support & Resistance on the Fractals" parameter.
    2) Added the option ti disable dots at the beginning of lines using "Dot at the start of line". Also, there is an option to set the size of these dots using "Font size dot".
    3) Now you can run several instances of the indicator in one window.
    4) Code optimization.
    Version 2.10 2017.08.16
    1) Added option "Add alert when changing the direction of ZigZag"
    2) Fixed minor bugs.
    Version 2.0 2017.06.08
    1) Added Candles of other periods (up to Quarterly).
    2) Small fixes.