No I didn't misunderstand.
You don't lose it, if you buy back right after you accidental sell it, because you only lose 2-3 shares to cover trade fees.
Example. You accidentally sold 5k shares. Oh wait, buy it right back. Buy 4,998 shares back. for the same price you just sold or a few cents different. And its magically like you never sold.
Magically like you never "lost profits"
Basically what I'm saying, if you accidentally sell, just buy it right back right away. Then it's like you never even sold, and this story wouldn't exist.