I need the 3rd value of the zigzag either up or down , can someone help me please

 
I need the 3rd value of the zigzag either up or down, can someone help me please
 
See attached script, you can copy this function into your EA. Returns Value and shift for the last two swing high/lows on the zig zag indicator
Files:
 
hansjlachmann:
See attached script, you can copy this function into your EA. Returns Value and shift for the last two swing high/lows on the zig zag indicator


Indeed, I am unable to thank you for this really what I needed
accept assurances of greeting and respect
Reason: