* U.S. mid-Atlantic factory activity up most in 2 decades
* U.S. home resales at more than year high in October
* Speculation of potential OPEC output cut on Nov. 27
* Heating oil demand from frigid U.S. weather helps (New throughout; updates prices, market activity to close and adds rally in heating oil)
By Barani Krishnan
NEW YORK, Nov 20 (Reuters) - Oil closed higher on Thursday, snapping a three-day loss, as strong U.S. economic data bolstered crude markets but focus remained on whether OPEC will cut output to end a five-month long selloff when it meets next week.
Factory activity in the U.S. mid-Atlantic region grew at its fastest pace in two decades, U.S. home resales jumped to their highest in more than a year in October, and a gauge of future U.S. economic activity gained more than expected last month.
Chances have also risen in recent days that the Organization of the Petroleum Exporting Countries will agree on reducing production when it meets on Nov. 27, analysts said.
Benchmark Brent oil settled up $1.23 at $79.33 a barrel, after a session high at $79.46.
U.S. crude finished up $1 at $75.58 after an intraday peak of $75.76.
“The market seems to be riding the wave of the strong U.S. data. There’s also growing speculation that OPEC may do something to support prices,” said Phil Flynn, analyst at Price Futures Group in Chicago.
Higher demand for heating oil from unseasonably cold U.S. weather also helped, said Harish Sundaresh, commodity strategist and portfolio manager at Boston’s Loomis, Sayles & Co, which manages $220 billion.
“The U.S. is very short heating oil inventory going into the winter months,” Sundaresh said.
Front-month heating oil futures closed up nearly 1 percent at $2.38 per gallon.
U.S. crude stockpiles unexpectedly jumped 2.6 million barrels last week although inventories of distillates, including heating oil, fell by 2 million barrels.
Fear of prolonged low prices for oil have pushed some U.S. producers such as Apache Corp, Continental Resources Inc and Denbury Resources Inc to budget less on drilling next year.
OPEC members Iran, Venezuela and Libya are calling on the group to cut production to support prices, which have sunk more than 30 percent since June to four-year lows, as U.S. output of high quality, light shale crude overwhelms demand in a lacklustre global economy.
Market bets on the outcome of the OPEC meeting varied sharply, with analysts at Austria’s JBC Energy expecting a 1 million-barrel-per-day cut at least, while New York-based consultancy Eurasia Group expects none. (Additional reporting by Christopher Johnson and Simon Falush in London; Editing by Marguerita Choy)