gann swing indicator

 
Has anyone managed to program the Gann Swing indicator in MetaQuote? It's coded in metastock. I wonder if you can share your code? Thanks.
 
Thanks. I'll have a look. I thought ZigZag doesn't finish until an extreme Low/High is made. But I could be wrong. I'll let you know after I check it out.
Reason: