Forex Factory (https://www.forexfactory.com/forum.php)
-   Commercial Content (https://www.forexfactory.com/forumdisplay.php?f=158)
-   -   ZigZag Lines MTF (https://www.forexfactory.com/showthread.php?t=729476)

Tecciztecatl Jan 11, 2018 1:17pm | Post# 1

ZigZag Lines MTF
 
4 Attachment(s)
Hello.
I'm sorry for my English is not the native language for me.

I want to show you my development, the ZigZag Lines MTF indicator for MT4 & MT5.
Demo version you can download directly from MT4 (MT5), from the Market tab. And you can try it in the strategy tester, in the visual mode.

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 rare cases can change the last 2-3 points.

All lines are drawn as objects (not indicator buffers, but there is a possibility to receive the data for the EA, using iCustom).
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.


Video with indicator capabilities:
Inserted Video


Some pictures:
Click to Enlarge

Name: 00.png
Size: 9 KB
Click to Enlarge

Name: 01.png
Size: 11 KB
Click to Enlarge

Name: 02.png
Size: 9 KB
Click to Enlarge

Name: mnu__0.png
Size: 29 KB

Tecciztecatl Jan 11, 2018 1:20pm | Post# 2

Parameters

  1. Zigzag show the ZigZag;
  2. Support & Resistance show the support and resistance lines;
  3. Price show the price of the levels;
  4. Targets show the current targets (where the market is headed);
  5. Used line show the broken levels;
  6. Extend broken lines (bars) extend the broken lines to the right by the specified number of bars;
  7. Max bars to calculate (bars) the maximum number of bars for calculation. This limitation is introduced to speed up the calculations.
  8. 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;
  9. Deviation the minimum number of points between the Highs/Lows of two adjacent candlesticks for the Zigzag to form a local top/bottom;
  10. Backstep the minimum number of candlesticks between the local Highs/Lows;
  11. Period for ZigZag the ZigZag calculation period;
  12. Sound alert sound alert when touching a level;
  13. Display alert pop-up alert when touching a level;
  14. Push notifications Push-notification;
  15. E-mail notifications notification by e-mail;
  16. Upper line color color of the upper lines;
  17. Lower line color color of the lower lines;
  18. Main line width width of the main line;
  19. Main line style style of the main line;
  20. Used line width width of the used line;
  21. Used line style style of the used line;
  22. Font size font size;
  23. ZigZag color color of the ZigZagа;
  24. ZigZag width width of the ZigZag lines;
  25. ZigZag style style of the ZigZag lines;
  26. Display candles enable the display of candles from other periods;
  27. Candles period period for candles, all standard periods plus Quarter;
  28. Number of Candles in the past number of candles on the chart;
  29. Shadow color color shadow of a candle;
  30. Body color (bullish) body color of a bullish candle;
  31. Body color (bearish) body color of a bearish candle.


Tecciztecatl Jun 1, 2018 10:51am | Post# 3

1 Attachment(s)
ZigZag Lines MTF (update 2.20)
1) Now, the indicator can draw levels using fractals. The parameter "Draw Support & Resistance on the Fractals"
2) Added option to disable points at the beginning of the lines - "Dot at the start of line". And the option for the size of these points - "Font size dot".
3) Now you can run several indicators in one chart.
4) Code optimization.

Click to Enlarge

Name: _zzLlines_2.2.png
Size: 26 KB

jbozman Aug 5, 2018 3:05pm | Post# 4

The Indicator needs to be posted here. We shouldn't have to go to another site...and there is a cost involved which is BS. And your English is not so good?...and you leave that explanation?

Tecciztecatl Aug 26, 2018 4:36pm | Post# 5

1 Attachment(s)
The Indicator needs to be posted here. We shouldn't have to go to another site...and there is a cost involved which is BS. And your English is not so good?...and you leave that explanation?
Well, if you are interested in this indicator, then you can buy it from your MT4 / MT5 terminal (Market tab).
...or you can download the demo version (without going to the site) from your terminal.
...and yes, my English is not so good, I'm sorry. (please feel free to correct me on this)

Click to Enlarge

Name: _111.png
Size: 40 KB

Tecciztecatl Aug 26, 2018 4:37pm | Post# 6

ZigZag Lines MTF (update 2.30)
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.

Tecciztecatl Oct 14, 2018 3:04pm | Post# 7

1 Attachment(s)
ZigZag Lines MTF (update 3.2)
1) Added the ability to read points using iCustom. Points are saved sequentially in the indicator buffer. Lines, as before, are drawn by objects.

Name:  zz_buff.png
Views: 1911
Size:  8 KB

Tecciztecatl Apr 11, 2019 12:00pm | Post# 8

2 Attachment(s)
ZigZag Lines MTF (MT4 & MT5) (update 3.4)
1) Added new mode "ZigZag Close".
2) Added alert when the price is near the line.

Click to Enlarge

Name: _112.png
Size: 19 KB
Click to Enlarge

Name: _113.png
Size: 43 KB

Tecciztecatl Oct 23, 2019 12:06pm | Post# 9

1 Attachment(s)
ZigZag Lines MTF (MT4 & MT5) (update 3.5)
1) Added a new mode "High-Low of the period".
2) Code optimization.

Click to Enlarge

Name: new_param.png
Size: 13 KB

stevefx67 Nov 1, 2019 6:16am | Post# 10

Thank you

Tecciztecatl Nov 1, 2019 6:31am | Post# 11

Thank you
You are welcome.

also (update 3.6)
1) Fixed copy bug for iCustom function.


mql-example of getting data from an indicator:
———————————————————————————————————
string num="10"; // calculate the last 10 points. If "0" then all points.
int Depth=12; // Depth
int Deviation=5; // Deviation
int Backstep=3; // Backstep // read the last point
int i=0; // point of ZZ

double price = iCustom(_Symbol,_Period,"ZigZagLines",num,0,Depth,Deviation,Backstep,0,i);

datetime start_time=datetime)iCustom(_Symbol,_Period,"ZigZagLines",num,0,Depth,Deviation,Backstep,1,i);

datetime end_time =(datetime)iCustom(_Symbol,_Period,"ZigZagLines",num,0,Depth,Deviation,Backstep,2,i);

bool unbroken = (bool)iCustom(_Symbol,_Period,"ZigZagLines",num,0,Depth,Deviation,Backstep,3,i);

int direction = (int)iCustom(_Symbol,_Period,"ZigZagLines",num,0,Depth,Deviation,Backstep,4,i);

double targetDN = iCustom(_Symbol,_Period,"ZigZagLines",num,0,Depth,Deviation,Backstep,5,i);

double targetUP = iCustom(_Symbol,_Period,"ZigZagLines",num,0,Depth,Deviation,Backstep,6,i);


Comment ("point="+IntegerToString(i)+"\n"+

"price="+DoubleToStr(price,_Digits)+"\n"+

"start="+TimeToString(start_time)+"\n"+

"end="+TimeToString(end_time)+"\n"+

"unbroken="+(string)unbroken+"\n"+

"direction="+((direction==1)?"up":"dn")+"\n"+

"lower target="+DoubleToStr(targetDN,_Digits)+"\n"+

"upper target="+DoubleToStr(targetUP,_Digits) );

———————————————————————————————————


© Forex Factory