Stocks fluctuated throughout much of the trading day on Thursday as traders weighed upbeat earnings news against some disappointing economic data. The major averages spent much of the session bouncing back and forth across the unchanged line before closing slightly lower.