US stocks have opened higher as investors cheered earnings results from Microsoft and monitored economic data.