ZigZag peaks and depths

 

Hi……..i am not programmer I am learning MQL4 language 1st of all I would like to thanks the ppl here like “Coder’sGuru” and many other who helps ot

I am going to find peaks and depths in the zigzag indicator for plotting different drawings such as Fibonacci Levels, Pitch Forks, Trendlines etc.

In 1st I need the DynamicFibo and Static Fibo drawing like “ZUP_v73

Its working in indicator, but the problem is its not working in EA the same code which is working in indicator.

I am attaching the indicator and EA if anyone helps me that will be highly appreciated

Files:
 

You forgot the attachment...

 

Re: ZigZag peaks and depths

Files:
 

Hello,

It could be better to use iCustom in your EA to call your indicator.

iCustom ( Symbol ( ) , Period ( ) , "DT_ZZ_Indicator" , 12 , 0 , i ) ;

The variable "12" is the "ExtDepth" of your indicator, you could choose different from your EA.

The variable "0" is the buffer.

The variable "i", is for timeframe (in bars) if you use it in a boucle "for"

Have a nice day !

 

Thankzzz nazoreen

i will try .....

 

Hi everyone, i just want to make a shout out to everyone in this forum.

Egudu.

Reason: