So nobody interested about this subject ?
OK, maybe someone knows another forum/site where I can find the answer.....
tenlau:
OK, maybe someone knows another forum/site where I can find the answer.....
OK, maybe someone knows another forum/site where I can find the answer.....
Yes there are many. If you look for zigzag logic, start here: https://www.mql5.com/en/articles/646
tenlau: I have a newbie question about coding. As you see on below picture I attached 2 ZigZag indicator to a chart. First with parameter Deviation=1000 color white and second with Deviation=5 color red. As you see there is not influence of Deviation parameter (indicators are overlapped).
Sorry for the late post, but I have recently been looking at the ZigZag code again, and it seems that you are correct. There is in fact a bug in the code with respect to the deviation that has never been corrected.
Here is a discussion, entitled "ZigZag is NOT ZigZag!" on this and other bugs detected in the MT4 version of ZigZag and derivations (including my own ZigZagZug which suffers from the same bug):
- http://www.stevehopwoodforex.com/phpBB3/viewtopic.php?f=15&t=1313
I want to thanks to @FMIC for his answer to my subject, and to notify that reply can not be done anymore on MQL4 forum, that is why I've done it here.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I have a newbie question about coding. As you see on below picture I attached 2 ZigZag indicator to a chart. First with parameter Deviation=1000 color white and second with Deviation=5 color red. As you see there is not influence of Deviation parameter (indicators are overlapped).
I looked at the source code and saw these lines:
I do not understand why this parameter has no influence on the chart. Please basic explanation. I am newbie at coding/
Thanks in advance!
PS It is a built in indicator in MT4 software.