NEW YORK ( TheStreet) -- Unnerved by erratic markets, investors have been dumping stock mutual funds and shifting to bonds. That approach could provide protection in a downturn. But big fixed-income holdings could drag down results if stocks rally.An alternative strategy for wary investors is to try one of the handful of flexible funds that can shift allocations. The flexible managers emphasize stocks in good times and take shelter in fixed income when conditions look risky. Funds that shift allocations include Osterweis Strategic Investment ( OSTVX), Stadion Managed Portfolio ( ETFFX) and Virtus Premium AlphaSector ( VAPAX). The flexible portfolio managers don't always make the right calls. But because they tend to excel in downturns, the funds can help to diversify portfolios. Osterweis Strategic Investment holds from 25% to 75% of its assets in stocks. When portfolio manager John Osterweis has no strong views on the market, he keeps 50% to 60% in equities. These days the fund has less than 50% in stocks. "We are cautious because the economic recovery is likely to be less robust than people thought," he says. While Osterweis Strategic Investment only started in 2010, there is good reason to believe that it can succeed over the long term. The portfolio is a combination of two older funds -- Osterweis ( OSTFX) , a stock fund, and Osterweis Strategic Income ( OSTIX), a multisector bond fund. Both the veteran funds have strong long-term track records. During the past 15 years, the Osterweis stock fund returned 9.5% annually, outdoing 97% of competitors in the mid blend category, according to Morningstar. The record is particularly notable since the fund has maintained low risk scores and excelled in downturns. During the turmoil of 2008, the stock fund outdid competitors by a wide margin. The Osterweis bond fund is a go-anywhere portfolio that can hold bonds of all kinds. In recent years, the portfolio manager has emphasized short-term high-yield bonds. Those yield more than Treasuries -- without taking big risks. During the past five years, the fund has returned 6.8% annually, outdoing 66% of peers. Stadion Managed Portfolio follows market momentum. When a rally begins, the portfolio managers start buying stocks. In a strong uptrend, the fund can hold up to 100% of assets in stocks. When markets begin dipping, the portfolio managers start shifting to fixed income. During much of 2008, Stadion had all its assets in cash. For the year, the fund lost 5.8%, outdoing the Standard & Poor's 500 by about 31 percentage points. During the past five years, the fund has outdone the S&P 500 by a half a percentage point annually while taking much less risk than the benchmark.