Yes, that's right, risk management is the key and that's why risk management is a mandatory plan for a trader, we must remember and understand that trading is not just about profit opportunities but the possibility of loss will always be a part that can never be separated.
And one of the reasons why traders often act impulsively, such as taking revenge on the market, is because most likely from the start they do not understand in detail that losses are part of trading, which may make them trade with amounts that they cannot afford to be responsible for.
So I think to avoid various impulsive actions and decisions, from the start you need to understand and be aware of the risks in trading, because of course no one will ever like losses, and when you understand this, I'm sure you won't dare to act too rashly.
All traders must understand the risks in trading, but many mistakes are made because they cannot control their emotions or greed for more, resulting in mistakes based on market sentiment that never stops if they cannot be controlled. Wanting to take revenge on the market is a common thing when someone makes a mistake and realizes their mistake so they want to do the opposite, which actually makes the risk of it happening again greater, so as I said earlier, this will not stop if it cannot be controlled.