Inverse Limited ZigZag

 

Hi everyone,

All of Zigzag Indicators Make Backtest very slow.

I need a code that calculate limited zigzags from right to left (EXP. Just 6 zigzags that given from extern input), And it has only "ExtDepth" in Extern inputs, just like "DT_ZZ_nen" Indicator.

And I don't need to draw lines, I want to use this code in an Expert and I Need Top[0], Bottom[0], Top[1],Bottom[1], Top[2], .. until zigzag limit.

For Exp. int Top[0] = 10;

that means: Bar number of first Top is 10th.

Can anyone do this favor? :)

Best Regards

Files:
dt_zz_nen.mq4  5 kb
 

This mql4 forum is for people who are coding themselves. You should post requests for coding work in the jobs forum.

 
SDC:

This mql4 forum is for people who are coding themselves. You should post requests for coding work in the jobs forum

Thanks.