A Hidden Markov Model approach to classify the sign of financial local trends