Genetic algorithm applied to financial technical analysis