It's been tough going for investors in 2011. Everywhere you turn there's a story about a legendary fund manager getting hammered or a rationale for why stocks are getting smacked lower.
Year-to-date, the S&P 500 index has dropped by more than 5.5 percent, but along the way it has squeezed profits from both longs and shorts — and as we approach year-end, things aren't looking terribly auspicious for investors either.
But that's not exactly the whole story.
On an individual basis, some stocks have performed exceptionally well in 2011. While high correlations are still a problem for investors, a stock that has a high correlation with "the market" can still dramatically outperform it.
The question is, how do you find those stocks beforehand? The answer is relative strength.
With year's end just a month away, relative strength is one of the best tools we have to identify stocks that are likely to beat the market in 2012.
So how does it work? Put simply, relative strength is a ratio of a stock's price to a broad market index. The ratio itself isn't important — instead, it's the trend of the ratio over time that's investible.
According to academic research, relative strength is a statistically viable strategy over a one- to 10-month time horizon; that's the time frame we're focusing on today.
To find the seven names that made this list, I used a quantitative screen to rank the top Standard & Poor's 500 names with relative strength over several time frames, then I weeded out the more attractive names using technical analysis.
The result is a set of relative strength trades that should outperform as we enter 2012.
1. Cabot Oil & Gas
First up is Cabot Oil & Gas , an $8.37 billion independent oil and gas producer that has operations spread throughout the United States.
Cabot has had stellar performance in 2011, more than doubling since the start of the year thanks to success in the firm's Marcellus Shale operations. That performance should do a lot to get investors' attention on this stock.
This stock has extremely heavy exposure to natural gas (it makes up more than 95 percent of production), which have gotten shellacked in the last year.
Even so, many analysts think nat gas could rebound quickly as a substitute for crude oil if oil prices continue to struggle higher. That would bode well for Cabot.
Cabot saw impressive relative strength earlier in the year, but the trend in the firm's RS line broke at the start of September. Now Cabot is just starting a new uptrend in relative strength, which should propel shares higher as we approach 2012.
Right now, Cabot is looking slightly toppy from a technical standpoint, but the firm is right above support at $77.50. That nearby "price floor" for shares significantly reduces the risk of buying a stock that's up as much on the year as Cabot is.
The year 2011 hasn't been quite as good to shares of Akamai , the content delivery network that helps companies serve users with everything from streaming video to downloads.
Shares of Akamai have dropped more than 42 percent so far this year, but relative strength has been in an uptrend since the market's October bottom.
Akamai benefits from the big trends in cloud computing, one of the hottest buzzwords in the tech sector right now. As "the cloud" shifts from being a buzzword to a household name, Akamai should see demand for its services tick higher.
The company also benefits from trends toward higher bandwidth — companies are using data-heavy tools such as streaming video more than ever, and Akamai's solutions can help make the experience seamless for users.
Like Cabot, Akamai formed a technical top in early November, and the stock is testing a support level at $26.
3. Allegheny Technologies
Allegheny Technologies is a metals producer that makes everything from titanium to super-alloys.
That exposure to more advanced specialty metals means the firm is less tied to traditional industries such as construction, and more driven by demand from high growth technology firms.
Better yet, the specialty metals business is capital-intense and has high barriers to entry; those are two factors that should protect the firm's margins more than commoditized metals makers can expect in 2012.
This is another name whose relative strength has been ticking higher since the broad market's October lows. From a technical standpoint, it's also one of the more attractive names because it's testing a key resistance level at $50 right now.
A breakout above $50 provides investors with a very attractive entry point with little in the way of resistance up ahead.
When using relative strength as an investment selection tool, it's important to keep an eye on what's going on in the broad market — that avoids the problem of outperforming a falling index by doing "less bad." Using a $50 breakout as your buy signal in Allegheny should help to protect against rising relative strength in a falling market.
Industrial construction and maintenance supply firm Fastenal gets its name from its focus on fasteners.
In total, the company sells 410,000 different types of fasteners at its approximately 2,500 worldwide stores, in addition to 586,000 other products. That massive product catalog has helped to propel Fastenal to one of the top slots in an incredibly fragmented market.
"One of the top slots" sounds a bit more massive than it really is — Fastenal still only holds around 2 percent of the market for industrial supplies, a tiny overall share that means there's still considerable room for the company to expand its top line without expanding its business strategy.
Relative strength has been attractive for Fastenal since the start of the summer, a fact that's evident when looking at the firm's chart: unlike the broad market, FAST didn't set new lows in early October.
From a technical standpoint, FAST is looking similar to Akamai and Cabot, testing a support level after rallying hard for the last month and change. If shares of FAST pull back to bounce off of support at $37, that level would be an ideal entry point for investors.
5. Helmerich & Payne
Helmerich & Payne is one of the largest drillers in the country, with more than $2.5 billion in annual sales.
H&P helps large oil and gas companies get to their products, using its expertise and proprietary mobile drilling rigs to find deposits on customers' properties.
The drilling business is expertise-driven; because drilling success can greatly impact the overall profitability of an oil or gas project, expertise in advanced techniques (such as horizontal drilling) is crucial. H&P has that covered.
From both a relative strength and technical perspective, H&P looks almost identical to Allegheny Technologies. Relative strength has been ticking higher since the S&P's October bottom, and shares are consolidating under a key resistance level at $57.50.
A breakout above that price level provides investors with a solid low-risk entry point.
Payment processing giant MasterCard is a stock that we've looked at for relative strength in the past. Shares have dramatically outperformed the S&P 500 in the past year, climbing more than 57 percent since January as most stocks stumbled.
MasterCard's No. 2 spot in the payment processing business gives it claim to around 31 percent of payment cards in the world, a scale that gives MasterCard network benefits that smaller competitors can't easily surmount.
Barriers to entry are extremely high for payment firms, and an undersaturated network combined with the increasing popularity of electronic payments bodes well for the firm.
Right now, MasterCard has support at $350, a price level that's acted as resistance in the past. As MA catches a bid at that price, investors should find themselves with a low-risk entry into this name.
While relative strength is nearing the end of its effective 10-month window, that timeframe is a guideline, not a hard-and-fast rule. As long as MA's relative strength line remains in an uptrend, it makes sense to own shares.
Health insurance firm Humana has had a strong correlation with the S&P 500 this year, synching up most turning points with the major index. But Humana is a good example of how a stock can correlate heavily with an index and still outperform.
Shares are up around 20 percent since the start of April, when high stock correlations started; the S&P is down nearly 12 percent over that same period.
Its $82 support level will be an important test for this stock. I wouldn't recommend buying shares unless they bounce higher off of that price level.
As with MasterCard, this is a name that's been showing outsized relative strength for the entire year. Again, as long as that relative strength line remains in a defined uptrend, it makes sense to own shares.
When RS breaks down below its trend line, wait for a technical sell signal in Humana's price action before unloading.
CNBC Data Pages:
TheStreet's editorial policy prohibits staff editors, reporters and analysts from holding positions in any individual stocks.