There are only two paths in trading: either you make a profit or you incur a loss! Profit and loss come from the same source! If you take the right direction but do not take profits in time, you will eventually turn a profit into a loss. If you take the wrong direction, as long as you have enough margin to withstand the pressure, you can still turn a loss into a profit.
The key is in money management, making appropriate positions at the right time and ensuring the right direction.