Even if you want to avoid such trades, it is always possible that the market will go completely against you. To get out of such a losing trade with losses, there is SL (stop loss).
SL activates ONLY if the complete trade is -x% in loss. As a result, everything is sold at a loss. If you don’t want to take losses, you should set SL to a minus percentage that you most likely won’t reach with a trade, such as -1000%. Do NOT write a minus (-) in there, just the number. You could use DCA to lower the average price per unit if you don’t want a stop loss.
How to activate stop loss (SL):
Add the minus percentage from which a stop loss should be executed through the GUI under Strategy Settings. Do NOT write a minus (-) in there, just the number.

How to enable stop loss (SL) via config:
Set the minus percentage at “slpercentage” under “strategySettings”.
Again: Do NOT write a minus (-) in there, just the number.

If you don’t want to make a stop loss then you could use DCA to lower the average price per unit.