ZigZag depth issue

 

I compiled a pre 600 mq4; there were no errors, no warnings. When I attached it to a chart, nothing is displayed. It is supposed to draw trendlines; it uses ZigZag.mq4.

After some checking, I realized that if the depth in ZigZag is set below 4, it no longer displays the trendline and ZigZag is automatically removed from the chart.

Why does that happen and how can it be fixed?

 
rwbta:

I compiled a pre 600 mq4; there were no errors, no warnings. When I attached it to a chart, nothing is displayed. It is supposed to draw trendlines; it uses ZigZag.mq4.

After some checking, I realized that if the depth in ZigZag is set below 4, it no longer displays the trendline and ZigZag is automatically removed from the chart.

Why does that happen and how can it be fixed?


https://www.mql5.com/en/forum/149492