adding trend direction tracking