Earnings are definitely a positive factor but the market is still trying to sort out a lot of conflicting news.
I think you're seeing the market raising its estimates on economic growth, but that also may mean higher rates. So we're still digesting what all this means, and the result so far is a flat-to-lower market.
The market has focused on disappointing earnings or disappointing guidance about future earnings of just a handful of companies. When there's any hint that we're at the peak of earnings growth, the market gets pummeled.
I don't think the market is doing that badly, but the market has bad news if it wants it. The PPI report seems to have signaled that producer price inflation is on the rise, there's been downward guidance in earnings and oil prices are going back up over $60 a barrel.