Traders work on the floor of the New York Stock...

Traders work on the floor of the New York Stock Exchange at the start of the trading session on Wall Street on Aug. 5, 2016. Credit: EPA / Justin Lane

U.S. stocks closed barely higher Wednesday as big gains for utilities balanced out losses for retailers like Lowe’s, Target and Staples.

The Dow Jones industrial average rose 21.92 points, or 0.1 percent, to 18,573.94. The Standard & Poor’s 500 index gained 4.07 points, or 0.2 percent, to 2,182.22 after falling as much as 10 points early on. The Nasdaq composite inched up 1.55 points to 5,228.66. That continued a persistent pattern of small moves for U.S. stocks.

Utility companies made the biggest gains, as low interest rates and bond yields make their big dividend payments more appealing. Dominion Resources jumped 2.6 percent to $76.65 and Xcel Energy added 1.7 percent to $42.33.

Consumer companies slumped after weak results and forecasts for some major retailers. Home improvement retailer Lowe’s cut its annual profit forecast after it reported a profit that was smaller than analysts expected, and sales at older stores were weak. Lowe’s stock fell 5.7 percent to $76.88. Target also lowered its profit projections as it deals with stiff competition. Its stock lost 6.4 percent to $70.63.

Office supply retailer Staples fell after disappointing analysts with its forecasts, which included further sales declines. Its stock fell 7.1 percent to $8.67.

— AP

Video Player is loading.
Current Time 0:00
Duration 0:00
Loaded: 0%
Stream Type LIVE
Remaining Time 0:00
 
1x
    • Chapters
    • descriptions off, selected
    • captions off, selected
      Long Beach HS lockout ... Nassau to celebrate '516 Day' ... Latest on LI home sales Credit: Newsday

      Updated 53 minutes ago LI brothers deported ... Long Beach HS lockout ... 9-11 victims memorial ... 'Simo' the K-9 retires

      Video Player is loading.
      Current Time 0:00
      Duration 0:00
      Loaded: 0%
      Stream Type LIVE
      Remaining Time 0:00
       
      1x
        • Chapters
        • descriptions off, selected
        • captions off, selected
          Long Beach HS lockout ... Nassau to celebrate '516 Day' ... Latest on LI home sales Credit: Newsday

          Updated 53 minutes ago LI brothers deported ... Long Beach HS lockout ... 9-11 victims memorial ... 'Simo' the K-9 retires

          SUBSCRIBE

          Unlimited Digital AccessOnly 25¢for 6 months

          ACT NOWSALE ENDS SOON | CANCEL ANYTIME