zig zag indicator

 
Im looking for a simple zig zag build only on pips, anyone can write me a code?
 
What is a simple zig zag based only on pips?
 
There is a zigzag supplied with MQL and it's a pretty good one too.
 
RickD wrote:
What is a simple zig zag based only on pips?

let's say evry 50 pips no matter how much bar or anything else, the zigzag turns on the other side.
Reason: