Jim Cramer -- Buy a Stock 'When Everyone Hates It'

Tuesday was the definitive case for long-term investing. I am seeing stocks that had been given up on time after time just come roaring back.

The other day I mentioned that a Goldman Sachs analyst has downgraded Caterpillar (CAT) to a sell in the $60s, betting it would get to the $50s.

That's so wrong it is a bit of rarity. What I am more concerned about are situations where people buy to hold and drive people out of stocks, and yet nothing's wrong.

We saw a host of those with the banking group last week.

But if you look at stocks like Freeport McMoRan (FCX) , which just keeps taking out new levels, and then you look at how analysts hate the darned thing so much it gets daunting.

I mean, wow, they had so many chances to recommend it and never did.

I know that Freeport's a tough nut to swallow in terms of an upgrade. The balance sheet is terrible. It made a miserable deal buying an oil company at the top. But once it had liquefied the balance sheet, the bear case just disappeared.

Did anyone bother to upgrade the big retailers into those quarters? You had to know the zeitgeist to get those right.

We saw this too with a stock like WhiteWave (WWAV) that was bought out by Danone, or NXP Semi (NXPI)  that was bought by Qualcomm (QCOM) . It was torture to own these because the stocks were so unpopular with analysts. (Qualcomm is part of TheStreet's Dividend Stock Advisor portfolio.) 

If you liked this article you might like

Caterpillar May Be Ready to Take a Breather

Cramer: FedEx Will Win Big With Global E-Commerce Growth 'On Steroids'

Look Back to Go Forward

Crazy Weak U.S. Dollar Will Make These 10 Companies Huge Winners

Caterpillar Leads Dow to Records, S&P 500 Also at All-Time Highs