* U.S. gasoline, distillates stocks unexpectedly fall -API
* For a short-term technical outlook for oil, [
]* Coming Up: EIA inventories, 1430 GMT; China trade data (Adds dollar strengthening, updates prices)
By Alejandro Barbajosa
SINGAPORE, April 21 (Reuters) - Oil rose past $84, nearing last week's trading ranges before the closure of European airspace and legal action against Goldman Sachs, as upbeat corporate results injected optimism into commodities markets.
Apple Inc reported higher-than-expected earnings on Tuesday, while Goldman Sachs results trounced forecasts, propelling Japan's Nikkei up by 1.7 percent on Wednesday.
In the past week, oil prices have been buffeted as the U.S. Securities and Exchange Commission sued Goldman Sachs and severe disruptions to European travel were caused by an ash cloud from an eruption in Iceland.
Jet fuel demand increased on Tuesday as flight bans related to the volcano eruption were lifted and markets shrugged off the Goldman Sachs legal troubles after other leading companies reported solid earnings.
"At this moment, nothing serious is happening, so the market has calmed down," said Keichi Sano, general manager of research at SCM Securities in Tokyo, adding that oil was trading "comfortably" in a range between $80 and $87 after having failed to break below $80 in the past three sessions.
"People got scared on Friday but now found out that it is not urgent to get out of their positions."
The front-month U.S. crude contract <CLc1> has rebounded almost 5 percent from a low of $80.53 two days ago, helped by Tuesday's expiration of the May contract.
On Wednesday, June crude added 58 cents to $84.43 a barrel by 0513 GMT, less than $3 from an 18-month high reached on April 6. ICE Brent for June <LCOc1> rose 61 cents to $85.41.
REFINERIES BOOST RUNS
Prices also got a boost from unexpected drops in U.S fuel inventories last week and a larger-than-forecast decline in crude inventories reported by the industry-funded American Petroleum Institute on Tuesday. [
]Higher processing rates at refineries offset a rise in imports, leading to a 741,000-barrel drop in crude inventories, according to the API. Gasoline stocks fell 1.7 million barrels in the week to April 16, while analysts had expected a 400,000-barrel gain.
And distillates, including heating oil and diesel, lost a sizable 3.1 million barrels, counter to analysts' forecasts for an 800,000-barrel increase.
Attention was set to turn to government statistics on inventories from the Energy Information Administration (EIA) due at 1430 GMT.
Traders also awaited energy demand signals from Chinese trade data due later on Wednesday.
"The Chinese factor is crucial for the commodities markets, as well as currency issues," Sano said. "The trade numbers might give some inspiration to the market about whether the Chinese currency is going to appreciate or not, and that might reflect in the oil market."
China is under pressure to boost the value of its currency because trading partners including the U.S. say it is undervalued. A stronger yuan would mean larger oil imports by the world's second-biggest oil consumer.
The dollar gained 0.17 percent against a basket of currencies on Wednesday.
European airports started to return to life on Tuesday after five days cut off from the rest of the world as authorities downgraded the risk that volcanic ash posed to aircraft. [
] (Editing by Ed Lane)