Who cares if the investment doesn't maximize potential profit? If someone invests $50 and gets $100 in return, that's great. If someone else invests $50 and gets $99.42 in return, that's great too, and who cares if someone made more 'profit' from buying and holding an imaginary financial instrument? The point is: buy "lower", sell "higher" is close enough to buy at the lowest point and sell at the highest point. But other factors come into play on why someone would sell at any time. Theoretically, ceteris paribus mutatis mutandis, if you invest in some company that happens to survive a thousand years into the future and has an annual average ROR of 7%, you should never sell it, even after your death if you want to maximize profit...buy low-ish, sell high-ish as convenient and with common sense. Theoretical perfectly maximized trades should not be the concern of the investor. Count dollars instead of pennies.
The problem you refer to is formally known as "Risk" aka Risk Capital.
The problem you refer to is formally known as "Risk" aka Risk Capital.