How can I use ZigZag indicator in MQL5?

ZigZag indicator is defined as custom indicator, so it is little bit different from other indicators. Can anyone give sample code how to read data from ZigZag indicator? Thanks!

I have found how to read that indicator, so don’t bother yourself answering. Thanks anyway!

http://forum.mql4.com/3930 ???

Can you share what you have found, how to read that indicator?

It’s stored in the 0 buffer. Depending on which zigzag you’re using: If zigzagBuffer[i] > 0 OR zigzagBuffer != EMPTY_VALUE