S&P 500, Nasdaq open higher to continue rally