Thought my reply would go to your original response. Sorry.
I have included a screen shot. A to B is a ZigZag leg. I am interested in know when it first appears. Not the entire line. I feel certain it appeared somewhere between A and a' rather than waiting until it broke above the high of the previous ZZ line. The same way line B to C could not have waited until it broke below the A-B line, because it did not. And the C-D line is inside the high and low of all the ZZ lines established by the A-B line. I am only interested in knowing when the ZZ lines first appear. Can you add a Sound Alert to occur at that point?
https://www.mql5.com/en/code/7796
I have included a screen shot. A to B is a ZigZag leg. I am interested in know when it first appears. Not the entire line. I feel certain it appeared somewhere between A and a' rather than waiting until it broke above the high of the previous ZZ line. The same way line B to C could not have waited until it broke below the A-B line, because it did not. And the C-D line is inside the high and low of all the ZZ lines established by the A-B line. I am only interested in knowing when the ZZ lines first appear. Can you add a Sound Alert to occur at that point?
https://www.mql5.com/en/code/7796
1