And as you move closer to the moment you may need your money (like retirement), you should move your investment from stock to safer investments. Ideally during a hype when everything is inflated of course, but anything other than a crash is a good time to sell.