Analyzing the sign of financial local trends via Hidden Markov Models