U.S. stocks closed slightly higher on Wednesday, amid a sharp rebound in oil prices, while the Dow snapped a seven-day slide.
"Investors are in a wait-and-see mode ahead of the jobs report," said Adam Sarhan, CEO at Sarhan Capital, noting that a strong report could provoke a sell-off, as it raises the possibility of a Federal Reserve rate hike. The jobs report is due Friday morning.
The Dow Jones industrial average closed about 40 points higher. Goldman Sachs and Apple contributed the most gains on the Dow. The S&P 500 ended 0.3 percent, led higher by financials and energy, and the Nasdaq outperformed, rising about 0.4 percent higher as Apple rose 1 percent.
Crude prices were broadly higher Wednesday, with U.S. oil settling 3.3 percent higher at $40.83 a barrel, after the Energy Information Administration said oil inventories rose 1.4 million barrels last week. The EIA also said, however, the number of gasoline barrels fell last week. West Texas Intermediate futures settled below $40 for the first time since April on Tuesday.
"I think people are looking at oil inventories as more of a supply issue, and that's why it's holding up," said Robert Pavlik, chief market strategist at Boston Private Wealth. "Supply can be controlled much more easily than demand."
WTI briefly erased its gains right after the EIA's data release.
"What we need get our arms around is oil," said Art Hogan, chief market strategist at Wunderlich Securities, noting that Venezuela, Nigeria and Canada have restarted their oil production after a series of disruptions.
On the earnings front, several companies posted quarterly results before the bell, including Time Warner, which beat expectations on the bottom line. Time Warner shares were up more than 2.5 percent in afternoon trade ET.
"Earnings ... have been pretty much as expected, but it's too early to see what the impact of Brexit is going to be," said Maris Ogg, president at Tower Bridge Advisors. "You've had management" not guiding positively.
Wall Street also digested U.S. employment data, as the ADP private payrolls report came in better than expected.
"Notwithstanding the better than expected print, the slowing hiring trend continues. The 3 month average job gain is now 174k and the 6 month average is 180k. These figures compare with job growth of 207k in 2015 and 234k in 2014. On one hand, employers are running out of qualified warm bodies to hire but also, slowing profits and shrinking profit margins don't lend itself to a pick up in hiring," Peter Boockvar, chief market analyst at The Lindsey Group, said in a note to clients.
That said, Wunderlich's Hogan said "it doesn't look like we're going to slip back into that May aberration." The ADP report is often used as a preview to the Bureau of Labor Statistics' jobs report.
Other data released Wednesday included the July ISM services number, which showed expansion, but came in below estimates. The Markit Services PMI for July came in at 51.4, showing slight expansion. Any number below 50 indicates a contraction.
On Tuesday, the Dow notched its first seven-day losing streak since last year, albeit trading in a very narrow range.
"We've been down for seven days in a row, but if you add that up it doesn't add up to 1 percent," Hogan said.
Tower Bridge's Ogg said she expects the market to remain in a tight range until after the U.S. presidential elections have concluded.
"Once Hillary [Clinton] gets elected, people ... are going to breathe a sigh of relief," she said, noting she sees very little chance of GOP candidate Donald Trump winning the election. "Once we get past the election, things are going to start clearing up."
U.S. Treasurys were mostly flat, with the two-year yield trading at 0.66 percent and the 10-year yield around 1.54 percent. The dollar gained about 0.5 percent against a basket of currencies, with the euro near $1.115 and the yen around 101.2.
The Dow Jones industrial average closed 41.23 point higher, or 0.23, at 18,355, with JPMorgan Chase leading advancers and Pfizer the greatest laggard.
The rose 6.76 point, or 0.31 percent, to close at 2,163.79, with energy leading six sectors higher and utilities the top decliner.
The Nasdaq composite gained 22 points, or 0.43 percent, to end at 5,159.74.
The CBOE Volatility Index (VIX), widely considered the best gauge off ear in the market, traded lower, near 12.8.
About two stocks advanced for every decliner at the New York, with an exchange volume of 883.89 million and a composite volume 3.665 billion at the close.
Gold futures for December delivery settled $7.90 lower at $1,364.70 per ounce.
Correction: This story has been updated to reflect the Markit PMI services index for July came in at 51.4.
On tap this week:
*Planner subject to change.
Earnings: Tesla Motors, Allstate, Agrium, Continental Resources, Transocean, Marathon Oil, Iamgold, Herbalife, Tesoro, Delphi Automotive, MetLife
Earnings: Kraft Heinz, LinkedIn, Toyota, Siemens, Regeneron, Church & Dwight, Alcatel-Lucent, Apache, SeaWorld, Time Inc, Motorola Solutions, Priceline, Symantec, Activision Blizzard, FireEye, Zillow, Weight Watchers, Lionsgate, El Pollo Loco, Zynga
8:30 a.m. Initial claims
10 a.m. Factory orders
Earnings: Weyerhaeuser, Allianz, Virgin America, Buckeye Partners, Liberty Interactive
8:30 a.m. Employment report; international trade
3 p.m. Consumer credit