How to identify up & down trend