Financial trends recognition using artificial neural networks