ZigZag indicator on MT4 version 4 build 1010; bug or am I stupid?
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
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 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.