Using CNN for financial time series prediction