help with indicator

 

Hi @ all,

i need a little help.

i´m trying to create an indicator, which is calculating the average differenge of zig and zag.

The indi should return the value of average zig/zag move. All my tries so far didn´t work.

Can anyone pls help me?

Thanks in advance

Reason: