In trading forex trading in general or in particular, there is always a risk of loss. Risk can not be avoided but can be eliminated is by implementing risk management.
Stop Loss and Limit Profit
Create a limit to how far you are willing to lose and make limits to realize profits.
Stop Loss function to avoid a greater loss if it turns out the price movements are not as we expected and likely the farther against our expectations. At a certain level where we want to bear the loss and put stop loss at that level then our position will be automatically closed and further losses can be prevented.
Limit Profit function to determine the profit target so that we achieve a time when the price has moved on the value we expect that our position will be closed automatically. This is useful if, after we desired price level is reached it turns out the price movement has managed to turn back the gains we bagged.