Oil prices were higher following a report that OPEC and its allies would consider deeper production cuts when they meet in December.
The report, which appeared on Reuters, quoted sources close to the producer group and reflected rumors that had been in the oil market previously. The cuts are expected to be made in response to the outlook for weaker demand growth.
Oil had been slightly higher earlier after China signaled progress in trade talks with the United States, but gains were capped by bearish forecasts of a buildup in U.S. crude stockpiles.
In July, OPEC and Russia, together with other non-OPEC members agreed to extend a 1.2 million barrel a day production cut for nine months. Saudi Arabia has made the largest cutbacks.
While geopolitical factors have occasionally moved oil prices, the biggest influence in the market for now is the trade war between the U.S. and China and its impact on oil demand growth.
China and the United States have achieved some progress in their trade talks, Vice Foreign Minister Le Yucheng said on Tuesday, and any problem could be resolved as long as both sides respected each other.
"While the encouraging mood across financial markets will remain stimulated by trade optimism, risk aversion could still make an abrupt return should talks drag on or turn sour," said Lukman Otunuga, analyst at FXTM.
The International Monetary Fund last week forecast that fallout from the U.S.-China trade war and trade disputes across the world would slow global growth in 2019 to 3.0%, the weakest in a decade.
Lower economic growth typically means reduced demand for commodities such as oil.
Oil prices however were pressured by forecasts of a buildup in U.S. crude stockpiles. Inventories are expected to have risen for a sixth straight week, while distillates and gasoline stocks likely fell in the week to Oct. 18, a Reuters poll showed.
The poll was conducted ahead of reports from the American Petroleum Institute (API), an industry group, and the Energy Information Administration (EIA), an agency of the U.S. Department of Energy.
"Expectations that the API and EIA will report that U.S. crude oil inventories increased by around 3 million barrels over the last week certainly do not help sentiment," ING analyst Warren Patterson said.
"These more visible stock builds, along with demand concerns continuing to linger, suggest it is becoming increasingly more difficult to see a sustained rally in prices ahead of the OPEC+ meeting in early December."
The Organization of the Petroleum Exporting Countries, Russia and other oil producers, an alliance known as OPEC+, have pledged to cut production by 1.2 million barrels per day (bpd) until March 2020. The producers meet again on Dec. 5-6.
Russian Energy Minister Alexander Novak said U.S. oil production is likely to peak in the next few years as current oil prices are capping the pace of expansion.
Goldman Sachs has wound back its forecast for growth in U.S. shale oil output in 2020, and slightly reduced its outlook for 2020 global oil demand growth.