Detect direction, sign of change of signal