The Origin Energy Ltd (ASX: ORG) share price has made a strong recovery since slumping to $7 in October and is now trading for about $9.57.
Despite gaining more than 35 per cent in the past three months, there are signs the Origin share price could keep going up.
For financial year (FY) 2017, Origin reported a net loss after tax of $2.2 billion on revenues of $14 billion.
More recently, things have been looking better for Origin.
For the quarter ended 30 September 2017, Origin announced revenue of $678.6 million, up by 58 per cent on the corresponding period the year before.
Origin also entered into an agreement to sell its conventional upstream oil and gas business, Lattice Energy, to Beach Energy Ltd (ASX: BPT) for about $1.6 billion during that quarter.
Origin CEO Frank Calabria said the sale is part of the company's strategy to simplify the business and reduce debt.
Adding to those factors, Origin looks set to benefit from rising retail energy prices coupled with projections of further declines in the costs of producing renewable energy.
As such, some analysts have changed their views on Origin.
In November, UBS cited Origin among its top ten ASX shares to buy for 2018 among another energy provider, AGL Energy Ltd (ASX: AGL).
Last month broker Goldman Sachs lifted its rating on Origin from neutral to buy, slapping a $10.70 target on the energy company's share price.
And, more recently, another broker, Morgan Stanley, has lifted its price target on Origin shares to $10.88.
Although things are looking better for Origin, AGL Energy still looks like a better buy.
AGL is expecting to turn an underlying profit after tax of up to $1.04 billion for FY 2018, which would represent a significant improvement on FY2017's profit of $802 million.
And AGL, unlike Origin, paid its shareholders a dividend per share of 91 cents (80 per cent franked) for FY 2017.
As such, AGL appears more attractive.