In the 1980s, an investor wanted to be in retail. It was the great era of consumer stocks. In that decade,

Wal-Mart

(WMT) - Get Report

shares gained 4,341%.

Home Depot

(HD) - Get Report

, a latecomer that didn't go public until 1984, still managed to gain 452% by 1989.

In the 10 years from Jan. 1, 1987, through Dec. 31, 1996, the place to make money was in computer stocks, as long as they were the shares of companies making hardware and software for personal computers and not for mainframes or minis. In that period,

Microsoft

(MSFT) - Get Report

shares climbed 6,252%, and

Dell Computer

(DELL) - Get Report

shares rose 3,849%.

IBM

(IBM) - Get Report

, in contrast, gained a comparatively paltry 82% over the same period.

Looking back, could an investor have predicted the trends that drove those stocks and sectors higher? I'd argue that the rise of the PC and of Microsoft and Dell was foreseeable, as was the decline of IBM, once it served notice that it would only dabble in PC technology.

Predicting Wal-Mart and Home Depot would have been tougher, although anyone focused on the continued suburban migration and the explosion of new forms of consumer credit would probably have decided to overweight a portfolio toward the sector.

The possibility of nailing long-term trends correctly is so tantalizingly juicy that I believe it constitutes portfolio abuse not to at least try to link the construction of your portfolio to macro trends.

In my

last column I laid out five macro trends that I think will shape the next 10 years. In this column I'm going to suggest five ways to profit from those trends -- or to limit the damage that these trends might inflict on your portfolio.

Plan for Volatility From Debt

As I pointed out last week, we're living in a very leveraged world -- especially in the U.S., where personal, corporate and government debt have all grown dramatically in the past few years. Why does this matter? Because leveraged assets tend to be more volatile. For most investors, the major goal should be to limit the damage inflicted by this volatility. One way to do that is to have enough cash on hand (enough to cover six to 18 months of expenses) to avoid selling long-term investments at panic prices.

It also means analyzing individual investments for their own use of leverage. In 2004-05, large amounts of debt will come due at companies that have weak cash flows and anemic credit ratings. This will restrict their ability to find new debt financing.

For example, investors can ask for cash and stock in exchange for their

Lucent Technologies

(LU)

8% redeemable convertible preferred as early as Aug. 2, 2004. The liquidation value of that preferred was about $1 billion recently. If the economy stalls or doesn't recover as strongly as is now hoped, then these leveraged companies could again see their stock prices plunge.

Invest in Aging and Beyond the Developed World

This volatility is going to be mixed, conversely, with an aging, slow-growth industrialized world. The developed countries of the world aren't getting any younger, and their output is projected to constrict. Here are two ways to attack that problem.

Add positions in big drug companies that invest in products for the aging. Consider Pfizer and Merck , big-cap medical-device companies such as orthopedic-device leader Stryker and big-cap testing and health care companies such as Quest Diagnostics . Investors could also create an anti-aging core by buying shares in mutual fund Vanguard Health Care. To this core, an investor could add more aggressive demographic plays such as NPS Pharmaceuticals , which is developing drugs to treat osteoporosis.

Look at China and Asia, but be careful. China, with a projected annual growth rate above 7%, is certainly intriguing, but it's also dicey, because the country doesn't have the built-in safeguards most U.S. investors take for granted. One company worth considering, however, is electrical component maker Jinpan International . The company is well-positioned as China builds out its electrical power system.

A good alternative for most investors might be an Asia-except-Japan mutual fund.

(MACSX) - Get Report

Matthews Asia Growth and Income is one good choice. Another possibility is to find a U.S. company positioned to attack successfully the Chinese or Indian market. An example is Alameda, Calif.-based

UTStarcom

TheStreet Recommends

(UTSI) - Get Report

, which specializes in a mobile phone technology called PAS (personal access system).

Build Inflation Protection Into Your Investments

Inflation-indexed bonds and hard-asset stocks belong in portfolios. For U.S. investors, inflation-indexed stocks come in two varieties: TIPS and I Bonds.

TIPS, or Treasury Inflation-Protected Securities, are probably the more familiar of the two. These 10-year notes carry an interest rate that adjusts with the consumer price index measure of inflation. The principal value of the bond also increases with inflation. The guarantee is that you'll receive a real rate of return on the bond equal to the coupon when you bought the bond, no matter what inflation does. The value of your principal is similarly guaranteed. TIPS are good bets whenever the coupon on the new offering is near 3%. That's the historical real rate (above inflation) of return on Treasuries.

I Bonds are technically Series I savings bonds, the inflation-protected version of good old U.S. savings bonds. They don't get as much play in the financial press as TIPS do for a couple of reasons. One, they're sold directly by the Treasury, so nobody makes a commission; and two, they're designed for small investors, with annual purchases limited to $30,000 or less. Like TIPS, the interest rate and principal are adjusted upward for inflation, so an investor is guaranteed a real rate of return equal to the initial coupon. Like all savings bonds, these are accrual bonds: Investors don't get any interest or principal payments until the bonds are redeemed. That accrual feature also enables an investor to defer taxes on interest until the bond is redeemed or matures.

And if inflation kicks up more strongly than 3%, then stocks of hard-asset companies are likely to do even better than TIPS and I Bonds. The price of these stocks is linked to increases in the prices of the real commodities they produce, plus some premium that's based on the fear among investors that inflation will spike higher. Big-cap metals producers to consider for inflation-hedging include

Rio Tinto

(RTP) - Get Report

,

Freeport-McMoRan Copper and Gold

(FCX) - Get Report

and

Newmont Mining

(NEM) - Get Report

.

Look for Companies That Profit From a Falling Dollar

A modest fall in the price of the dollar would be a boon to U.S. companies that sell overseas and would see the price of their products fall in local currencies (and see those currencies translate into higher revenue in dollars on their books back home). So one way to profit from a moderate decline in the dollar is to own shares of companies such as

Caterpillar

(CAT) - Get Report

,

Procter & Gamble

(PG) - Get Report

, IBM and

Intel

(INTC) - Get Report

that generate a lot of their sales overseas. But if the modest decline in the dollar (especially against the euro) should turn into a rout, then investors need to make sure they've contained their exposure to the rising interest rates that are likely to result. That means:

Watching out for leverage (see item one).

Building bond portfolios around ladders of graduated maturities and holding bonds to maturity.

Making sure that you avoid interest-rate-sensitive sectors in the stock market, such as homebuilders.

Don't Lock Your Retirement Funds in Company Stock

Finally, governments and companies, both here at home and abroad, will have a hard time keeping pledges to provide health care and pensions to retirees. I have called this "a world of broken promises." To avoid being whipsawed by both government and company cutbacks, make sure you don't have the bulk of your retirement funds locked up in the stock of your employer.

Start exploring --

now

-- the options open to you if your ex-employer suddenly decides it won't pay retiree health care benefits anymore or if the federal government decides that everybody should pay $2,000 a year for government health insurance. There's no way to take the pain out of broken promises like these. Thinking about them in advance, however, is likely to give you a better shot at seeing them as challenges that can be met.

The portfolio for the next decade needs to be more buffered from volatility, more insured against inflation, more outward-looking from the U.S. to the developing industrial economies, more carefully constructed to contain the risks of rising interest rates and more flexible in its planning to take account of the likelihood of broken promises.

If you follow that logic, stock selection is likely to put more emphasis on inflation-hedging assets such as inflation-adjusted bonds and hard-asset stocks. It will also include more international stocks, not as part of reducing risk by further diversifying a portfolio, but as essential to finding growth in a slow-growth world economy.

Jim Jubak appears Wednesdays on CNBC's "Business Center" at 6 p.m. EDT. At the time of publication, Jim Jubak owned or controlled shares in the following equities mentioned in this column: Microsoft and Pfizer. He does not own short positions in any stock mentioned in this column.