Zigzag color problem

 
Hi everyone, I'm trying to make this indicator like the image but no success

Could anyone help me please? 
Files: