ZigZag is profitable, but can U make an EA from the indicator?

 
Hi, I read the articles related to ZigZag, and traded it, still i have problems with creating an expert from it.

If someone with better knowledge could help, I would be grateful.

Below I attached a sample free-to-modify ZZ ea.
Files:
qkzigzag.mq4  7 kb
 
Have you looked at the zigzag in action? You can't predict where it will land so it wont work.
 
bonechair:
Have you looked at the zigzag in action? You can't predict where it will land so it wont work.
Exactly, but, when it lands U can open an opposite position...
 
Still I'm gonna take a closer look at ZZ... maybe U're right
 
ZigZag is unstable indicator. Trades provided on it could be profitable, but you have to bear in mind that huge losses are possible also.
 
janekpietrzyk:
bonechair:
Have you looked at the zigzag in action? You can't predict where it will land so it wont work.
Exactly, but, when it lands U can open an opposite position...

Yes you can but by the time you make that order it could change direction. But try and code it. Zigzag was one of my first EA and I learned alot.
 
janekpietrzyk:
bonechair:
Have you looked at the zigzag in action? You can't predict where it will land so it wont work.
Exactly, but, when it lands U can open an opposite position...
But in fact you are never sure that it already landed...
Reason: