As you get older, it seems that no one wants you to have any fun. You have to be more careful about your health. When you exercise, you're supposed to make sure your heart rate doesn't get too high. Some folks even want to take away your driver's license once you get to a certain age.

With investing, seniors face the same challenge. After a lifetime of investing experience, and after you've become familiar with dozens of companies that have served you well, you may well hear financial planners telling you that you should bid farewell to those trusty stocks -- even blue chips like Procter & Gamble (NYSE:PG). They argue that the risk of holding those stocks is too great now that you're older.

One size fits all?
Sure, there's something to that logic -- as the ongoing bear market has made perfectly clear. After all, when you're young, you have decades before you'll need the money you set aside for retirement. With all of that time ahead of you, you can afford to take some big risks.

Even if your investments do badly at first, you can wait for them to turn back up again. Your timeline and risk profile would accommodate volatile stocks such as Baidu (NASDAQ:BIDU), (NASDAQ:CTRP), and lululemon athletica (NASDAQ:LULU). Although each has a beta greater than 2, analysts are expecting all three to grow at 25% or more per year for the next five years -- though you should be careful about relying too much on analysts' projections.

Conversely, as you approach or enter retirement, you no longer have the luxury of weathering long downturns in stocks. You need that money now for your living expenses. If you were unlucky enough to get hit by the next recent downturn, you may have to sell at very low prices just to pay your bills.

The concept that you should reduce your allocation to stocks as you age is so engrained in common wisdom that certain mutual funds do it automatically. So-called target retirement funds, which we've discussed in the past in our Motley Fool Rule Your Retirement newsletter, are designed to change their investment strategy gradually over time, to accommodate your changing risk tolerance. Yet even though these funds make investing very simple, they may not be able to handle all of your specific needs.

Competing risks
There's one big problem with reducing stock exposure as you get older: Although falling stock prices may seem like the biggest danger -- especially now -- people face other risks as they move toward retirement.

Even if your portfolio is adequate to cover your costs when you're just about to retire, the threat of inflation is ever-present. With a $1 million portfolio invested entirely in ultra-safe Treasury bills, you won't even earn $10,000 to cover expenses each year, thanks to rock-bottom interest rates. Moreover, the value of your principal will stay locked at that $1 million mark, and it won't be long before rising costs eat away at its purchasing power.

Stocks, on the other hand, offer not only prices that rise over time, but also rising dividends. Companies such as PepsiCo (NYSE:PEP), Dover (NYSE:DOV), and Kimberly-Clark (NYSE:KMB) have a long history of increasing their dividends regularly, providing extra income that can help seniors keep up with inflation -- even when the stocks themselves have suffered temporary drops.

On the other hand, if you've saved up a substantial nest egg for your retirement, you may be able to tolerate the risk of market downturns. For instance, a typical plan for a retiree might have you sell some of your stocks every year to supplement your retirement income.

However, you can hedge the risk of a market drop by keeping enough money in safer securities to give your stocks a chance to recover. Even though this strategy involves keeping several years of expenses in bonds, CDs, or cash, it still gives you the ability to keep a substantial fraction of your portfolio in assets that will provide a better return.

As an example, if you had retired in 2007 following this strategy, you could have avoided having to sell stocks at the market's lows, waiting until the market recovered to sell and replenish your cash reserves.

Rules of thumb are helpful for beginning investors. To get the best results, however, you have to know when to break those rules. By weighing the risks of different investment strategies, you can pick the one that will work best for you. And you won't have to give up the fun of stock investing, no matter how old you get.