Oil prices surged higher again on Friday, adding to the market’s confidence that the rout may have finally found a floor.

After hitting a 12-year low price around US$27 a barrel recently, Brent oil is now fetching more than US$32 a barrel following a 10% rally. US crude oil also gained 9% to trade at US$32.19 a barrel, resulting in a 21% gain over just two days, according to The Australian Financial Review. It’s the biggest two-day gain since September 2008.

While some pundits recently noted that oil prices could fall as low as US$10 before a floor was found, others are now suggesting oil prices will actually end the year higher. The AFR even noted that Pierre Andurand, who correctly predicted the slump in oil prices, believes it will trade for US$50 a barrel this year and US$70 a barrel next year.

Indeed, the rout itself has been caused by massive oversupply in the market, combined with a lack of demand growth. These low prices could force some of the higher-cost producers to cease production however, which could see surplus turn into a deficit.

Although there is every chance those suggestions could be wrong, and that oil prices could well fall below their current levels, investors do appear more confident. Shares in the sector jumped on Friday and are surging again today, driving the S&P/ASX 200 (Index: ^AXJO) (ASX: XJO) higher:

Shares across the sector have fallen considerably in price over the last 16 months or so, and the latest bout of optimism is sure to attract some investors back into the sector. While that might be a strategy for investors willing to take a high amount of risk, others should look to avoid the sector for a while yet.

Buying shares in the sector today is really taking a bet on the future of oil prices. It’s a bet that could pay off, but it could also result in significant losses if prices do resume their decline. Personally, I’m staying out of the sector for now and see other opportunities elsewhere that seem more compelling today.

Our BEST stock idea for 2016 - FREE!

Our top analysts have recently selected their TOP stock idea for 2016, and with share prices falling, it could be the BEST time to buy! This relatively unknown technology share is growing rapidly and offers a fat, fully franked dividend! Best of all: their top stock idea for 2016 is yours FREE! Just click here, enter your email address and claim your free report - no payment or credit card required!

HOT OFF THE PRESSES: Motley Fool’s #1 Dividend Pick for 2017!

With its shares up 155% in just the last five years, this ‘under the radar’ consumer favourite is both a hot growth stock AND our expert’s #1 dividend pick for 2017. Now we’re pulling back the curtain for you... And all you have to do to discover the name, code and a full analysis is enter your email below!

Simply enter your email now to receive your copy of our brand-new FREE report, “The Motley Fool’s Top Dividend Stock for 2017.”

By clicking this button, you agree to our Terms of Service and Privacy Policy. We will use your email address only to keep you informed about updates to our website and about other products and services we think might interest you. You can unsubscribe from Take Stock at anytime. Please refer to our https://www.fool.com.au/financial-services-guide">Financial Services Guide (FSG) for more information.

Motley Fool contributor Ryan Newman has no position in any stocks mentioned. Unless otherwise noted, the author does not have a position in any stocks mentioned by the author in the comments below. You can follow Ryan on Twitter @ASXvalueinvest.

The Motley Fool Australia has no position in any of the stocks mentioned. We Fools may not all hold the same opinions, but we all believe that considering a diverse range of insights makes us better investors. The Motley Fool has a disclosure policy. This article contains general investment advice only (under AFSL 400691). Authorised by Bruce Jackson.