ZigZag Indicator – Formula and definition
It is based on historical price.It can remove the random noise and compare relative price movements.This indicator can help you to predict when a security’s momentum is reversing.It eliminates the random price fluctuations. Minimum price change parameter determines the percentage for the price to move in order to form a new “Zig” or “Zag” line.

The default value for the zig zag is 5%. This means that any counter move less than 5% will not generate a signal on the chart. Hence a trader will be able to ignore the countless minor moves that have no affect on the primary trend.The minimum price movements are set in percentage terms and can be based on either the close or high/low range.It is better tool to analyze the historical data ,it can measure retracements but is not good for making prognoses
Formula for Zig zag Metaquotes
http://codebase.mql4.com/download/1367
This formula for metastock is a copyrighted content and so we are just adding its link here
ZigZag Indicator tracks and connects extreme points of the chart, the distance between these points being equal or higher than the percentage specified for the price scale.
