HELP zigzag indicator

 

hey

can any one make this, i want zigzag to return a constant value either 1 or -1

if the last zigzag is at high the return value is always -1

if the last zigzag is at low the return value is always 1

so the return value always -1 if the last zigzag is at high the return value is -1 until a new low zigzag is formed then change the return value to 1 until the next high zigzag

 
It might already exist . . have you searched for it ?
 

yep couldt find any,

the zigzag return value 0 for both ends :( i need to change that

Reason: