It's in the nature of stock markets to go way down from time to time. There's no system to avoid bad markets. You can't do it unless you try to time the market, which is a seriously dumb thing to do. Conservative investing with steady savings without expecting miracles is the way to go.