We’ll start off with emotions. Because emotions will trigger an action.
You felt fear = You closed the trade early.
The cause of fear? Probably fear of giving back profits to the market, because you aren’t confident enough in your trading system yet! Stop live trading, take a through review of your trading system. Is it fixed or is it discretionary? Have you done a through back-test yet? These are the things you should focus on.