Shares of energy companies were more or less flat as investors hedged their bets on the outlook for energy prices.

Oil futures closed down substantially on the week at $40.25 a barrel, as doubts about the course of the coronavirus pandemic continue to dent optimism about energy demand.

The number of rigs drilling for oil in the U.S. rose by four in the past week to 183, but remained near multi year lows, according to the latest tally from oil-field services company Baker Hughes.

Write to Rob Curran at rob.curran@dowjones.com