That is the first rule and best rule you can follow in investments, not everybody has the discipline to do that though, greed takes over.
This a million times over.
It's not said to much either but feel maybe some would benefit from reading it: You do NOT lose until you sell. It's really that simple guys. You may be down from initial buy-in but as long as you haven't sold you haven't taken a loss.
My advice is hang tough and watch the markets as they do pump every once and a while. Be ready for it, and make your exit.
Mainly though: Don't invest what you can't afford to lose and research, research, research!!