Problem with High-Low-ZigZag

 
Hello,

I have sometimes a problem with the High_Low ZigZag Indicator which I use.

The problem is show on the pictures wich I attached here, sometimes when I shut down my terminal and restart it then the indicator draws not correct lines first when I restart the indicator it draws again correct.






Has somebody at all slove this problem?


Regards

Tim
Files:
 

Could you rename your variables into a more human readable form?

 
arachnode.net wrote >>

Could you rename your variables into a more human readable form?

I have not create this indicator, and for me it i also not so good readable the code. I have pit now a "ArrayInitialize(ExtMapBuffer1,0);" statement on the beginn from the "start" function and hope that the lines will always be delete first before anythink new is drawing and hope this help. probleme is also that that was a have show there in the picture above dont hapen everytime and that makes is very difficult to find the problem.

 

It's a good indicator and have found it useful as a 'Close the current position' indicator.

If I see the problem I'll take a look at the code.

Reason: