Development of an automated trading system to the stock exchange and forex using neural networks multilayer perceptron