US stocks open higher after ending 4-day losing streak