An indicator like zigzag

 

hi

i want an indicator like zigzag by this property:

i want indicator that show wave by width channel. i mean :


for example in down trend, when one low break after (minimum)X candle, the wave show by indicator.

one indicator i found in this link but it is not what i want .

 
If you go here they will code whatever you need: Coding for MT4 & MT5
Reason: