• Overview
  • Reviews (1)
  • Comments (3)
  • 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).
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.
handle_ZZ=iCustom(_Symbol,_Period,"ZigZagLines","10",0,Depth,Deviation,Backstep);

   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);}


Parameters

  • Mode — draw support and resistance levels based on:
    • Zig Zag — the ZigZag indicator;
    • Fractals — the Fractals indicator;
    • 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;
  • Add an alert when changing the ZigZag direction — additional alert when changing direction of ZigZag;
  • 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
2647
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.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.