After ending the previous session modestly lower, stocks showed a lack of direction throughout the trading day on Tuesday. The major averages spent much of the session lingering near the unchanged line before closing mixed.