A 2-stage artificial neural network predictor with application to financial time series