ZIGZAG DIRECTION EA

how do i go about making my EA know which way the ZIGZAG INDICATOR is pointing?