I am absolutely against panic selling. But at the same time, we can't hold on to all of our savings for an infinite period of time. At some point, you need to sell at least a part of your savings, in order to book profits. What we need to do is to come up with a detailed plan, on how much of the holdings should be allotted for long-term storage, and how much of it should be allotted for profit booking.
With the same case, there's also some emergencies that we needed to consider, people who suffered with big losses are those who are not prepared with market conditions.
And like what you have said, panic sells with profits is better you just need to have a good concrete plans to book your benefits.
Among the thing that makes a good trader is the ability to have patient and not FOMO in and out thereby buying high and selling low.
Skills that needed to be developed along the way to prevent losing your investments,.