Stocks advanced on Thursday as another batch of positive earnings and a strong housing report put equities on track for a third straight day of gains.