Here we go again.

During past bull markets, many Americans nearing retirement fleetingly acquired a nest egg adequate for later life. Then, as quickly as that nest egg came, it went—leaving behind regret, sleepless nights, and in the worst case, panic selling near the bottom that eliminated any possibility of recovery.

This happened in the...