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