I am looking for code / algorithm of ZigZag, which draws the extremums greater than the value specified in the input parameters of an indicator. The basis for rendering an extremum in the opposite direction is to find the area of history, in which the difference of High-Low is more than defined in input parameters.
Example:
http://forum.mql4.com/c/forum/2012/01/ex_zz.JPG
The application attempted(for MetaTrader 5) to implement the idea, but the indicator does not always work well, so am looking for other algorithms.
Example:
http://forum.mql4.com/c/forum/2012/01/ex_zz.JPG
The application attempted(for MetaTrader 5) to implement the idea, but the indicator does not always work well, so am looking for other algorithms.
Attached File(s)
ZigZag_Graff4.2c.mq5
4 KB
|
255 downloads