The Dow and the S&P 500 gain momentum as Apple predicts strong sales growth