Right now, it's the slowdown in the rate of economic decline that matters. As long as the economic data validates the "green shoots" scenario, and things keep getting less bad, it seems that the market will keep rallying as investors assume -- understandably so -- that the economy will start growing.

This may be why the U.S. dollar has been selling off of late -- as its safe-haven status is no longer in high demand. In an opaque way, the dollar's weakness is a sign of economic stabilization, so it's up to the second derivative of economic growth to determine the value of the U.S. currency and stock market.

The May numbers
Fools may know by now that I like to look at monthly S&P 500 sector performance to put the past month's events in better perspective. The optimism that commenced in March and carried into April also continued last month. Let's dig into the performance results:

Sector

May 2009

April 2009

1st Quarter 2009

2009 YTD

2008

S&P 500

5.31%

9.39%

(11.67%)

1.76%

(38.49%)

Energy

10.16%

4.81%

(12.08%)

1.52%

(35.93%)

Materials

5.55%

15.09%

(2.82%)

18.05%

(47.05%)

Industrials

2.65%

17.72%

(21.77%)

(5.46%)

(41.52%)

Consumer Discretionary

(1.06%)

18.54%

(8.61%)

7.18%

(34.73%)

Consumer Staples

5.48%

3.03%

(11.31%)

(3.61%)

(17.66%)

Health Care

6.53%

(0.89%)

(8.52%)

(3.41%)

(24.48%)

Financials

13.10%

22.17%

(29.49%)

(2.58%)

(56.95%)

Information Technology

2.40%

12.04%

3.96%

19.27%

(43.68%)

Telecom

(1.32%)

2.23%

(8.47%)

(7.66%)

(33.62%)

Utilities

3.11%

0.42%

(11.86%)

(8.74%)

(31.55%)

Source: Standard & Poor's.

Financials and energy were the only double-digit advancers as the pace of the rally slowed down in May. Energy finally began to rally, gaining better than 10% for the month; it was the second-best sector after the notorious financials, which appreciated another 13% in May. In the energy space, I like ConocoPhillips (NYSE:COP) as a more leveraged play on the price of oil and ExxonMobil (NYSE:XOM) as the most defensive energy stock, due to its huge cash position and recent exciting oil finds.

That the market was led by the group that is to blame for the black hole we sunk into in 2008 -- financials -- is a worrisome sign. The experts that had been right all along on the sector say this is a bear market rally. In my experience, bear market rallies are usually the sharpest and most spectacular in nature, so standing in front of a moving train is not advocated -- financials (the moving train) are up 38% since the beginning of the second quarter.

I remain steadfast in my belief that investors should only stick with well-capitalized banks. Those that have been approved to return TARP funds -- particularly Goldman Sachs (NYSE:GS), JPMorgan Chase (NYSE:JPM), and Morgan Stanley (NYSE:MS) -- are a good place to start looking. Though these names have not rallied as much as the low-quality stocks in the financial space -- like Citigroup (NYSE:C), which was just booted off the Dow -- they will not decline as much in a correction. You're always better off with well-run companies.

Time to buy utilities?
Utilities are down the most thus far in 2009, and if this rally is for real -- more in a second on why that's a big if -- they should catch up with the rest of the market. Utilities are economically sensitive and will perk up if the economy improves. Also, a rise in Treasury yields usually is a headwind for the sector, but I believe that bond yields are unlikely to go much higher in the short term.

There is one utility company that has a distinct competitive advantage -- Exelon (NYSE:EXC) -- as it owns the biggest nuclear power generating capacity in the United States (third largest in the world). I'm a big believer in buying good stocks when they are down. This one was cut by more than half at the March lows, but the nuclear reactors are still there.

Those dreadful generally accepted accounting principles
We went from too much pessimism at the lows in March -- near 666 on the S&P 500 -- to too much optimism, with the market tagging 930 in early May. In the process, the S&P 500 managed to trade above 131 times trailing GAAP earnings.

On the issue of GAAP P/Es, I was asked the following by one of our editors: "Just a devil's advocate question: Isn't it easy to justify the 131 P/E by saying it's artificially low due to one-time write offs and other adjustments that will likely disappear in the future?"

I tracked down the GAAP earnings estimates for the June quarter for the S&P 500 -- a whopping $6.17. Now, the S&P 500 companies earned, according to those dreadful generally accepted accounting principles, $7.57 in the March quarter (with 97% of the data calculated as of the time of this writing). In the fourth quarter of 2008 they lost an astounding $23.25; in the prior two quarters they earned $9.73 and $12.86.

Before we proceed, here is a historical table of the S&P 500 GAAP earnings and P/E ratios, supplemented with future estimates.

Quarter Ended

S&P 500

GAAP EPS

GAAP P/E

December 31, 2010

1,500

$8.33

42.05

September 30, 2010

1,400

$8.71

40.45

June 30, 2010

1,300

$9.01

40.22

March 30, 2010

1,200

$9.62

40.71

December 31, 2009

1,100

$7.27

40.11

 September 30, 2009

1,000

$6.42

-323.18

June 30, 2009

919.14

$6.17

4259.36

March 31, 2009 (97%)

797.87

$7.57

115.54

December 31, 2008

903.25

-$23.25

60.70

September 30, 2008

1,166.36

$9.73

25.38

June 30, 2008

1,280.00

$12.86

24.92

March 31, 2008

1,322.70

$15.54

21.90

December 31, 2007

1,468.36

$7.82

22.19

September 30, 2007

1,526.75

$15.15

19.42

June 30, 2007

1,503.35

$21.88

17.70

March 31, 2007

1,420.86

$21.33

17.09

December 31, 2006

1,418.30

$20.24

17.40

Source: S&P, author assumptions.

I lack the clairvoyance to know where the market will close on June 30, 2009, but I will assume that it will be flat and close where it did in May -- at 919.14. If we do make that $6.17 quarterly EPS that the top-down estimates are calling for, the S&P 500 will trade at a GAAP P/E of 4,259. That's not a typo -- we lose the $12.86 we earned in the last June quarter and instead add the $6.17 from the current June quarter.

Let's assume the market sees through those write-offs and rallies to 1,500 by the end of 2010, appreciating by 100 points per quarter (yes, I know this is generous). But the EPS assumptions that come from top-down estimates collected by Standard & Poor's do not seem to see through those one-time write offs. The GAAP P/Es in the table above speak for themselves. Even if the market stays flat by 2010, the S&P 500 GAAP P/E will remain in the 20s -- according to S&P's top-down consensus estimates for EPS, not mine -- which is expensive by historical standards.

Also, the S&P 500 is on target to trade with negative trailing-12-month earnings by September -- and that is a big event. Any way you slice it, we are in uncharted territory. The optimists cannot be sure that the rally will continue under these conditions, nor can the pessimists (including this one) be sure when it will fail.

More macro-market Foolishness: