If we loaded Zigzag Indicator , I find a large bug! It also happened on Mt5 and Mt4.
To Set Zigzag Value: ( ExtDepth=30; ExtDeviation=5; ExtBackstep=3; )
Symbol is "AUDUSD" ;
TimeFrame is "H1" .
The latest timeclock is "2017.06.21 13:00", your will find bug like Picture.
After loaded, Zigzag was right at first . But!!! wait a moment , you will see this :
This bug is very serious, especially on EA!
I test it on Mt4 , also have bug.
Not a bug.
A ZigZag set at ExtDepth=30 would ignore all price movements less than 30%. (14/15 Jun)
ExtDepth=30 it is equal to 30% loss of the data, so it is normal for this type of actions when there was a lowering and recovery very fast, as is the case (14/15 Jun). Has that add to lose a 30% of the data.
Thanks for reply.
But It is right at first , suddenly ,it become that . I have read Zigzag's Code . I don't think it will happen.
Another Indicator: ZigzagColor (Mt5) . The results is right. To see the picture: ZigzagColor(30,5,3)
So, ZigzagColor is right, But Zigzag is wrong. Do you know why this happened? And another question: you have said "ExtDepth=30 it is equal to 30% loss of the data" . What is it meaning?
Thanks for sharing.
But I still don't understand why Zigzag is wrong and ZigzagColor is right.
It seems that the "Color" version is more accurate due to a count of the % of data which leaves aside.
int level=3; // recounting's depth
set 200 on this line
while(counterZ<level && i>rates_total-100)
while(counterZ<ExtLevel && i<100)
Thank you, It is solved.