There are two attributes which have to be set for the required effect.
SO(X)_stop_loss_trigger
sets the value which will trigger the DCA Stop Loss scale out.
SO(X)_stop_loss_portion
sets the percentage of the DCA holdings to be sold when the trigger value is met.
You can setup several Scale Out sells by altering (X).
Note: If you specify a portion and the rest amount would become dust. The bot will sell 100% of your holdings.
Portion
is a positive decimal values.Trigger
is a negative decimal values (any value will be converted to negative).
# We have 1000 XRP.
# If the XRP price drops to give us a profit of -10% or less
# ProfitTrailer will attempt to sell 25% (250 XRP). We have 750 Left.
# If the price continues to drop to -20% or less
# ProfitTrailer will attempt to sell a further 40% of the original holding
# (400 XRP will be sold)
DEFAULT_SO1_stop_loss_trigger = -10
DEFAULT_SO1_stop_loss_portion = 25
DEFAULT_SO2_stop_loss_trigger = -20
DEFAULT_SO2_stop_loss_portion = 40
# We have 10 LTC.
# If the LTC price drops to give us a profit of -2% or less ProfitTrailer
# will attempt to sell 50% (5 LTC). We have 5 Left.
# If the price continues to drop to -20%
# ProfitTrailer will attempt to sell a further 25% of the original holding
# (2.5 LTC will be sold)
DEFAULT_DCA_SO1_stop_loss_trigger = -2
DEFAULT_DCA_SO1_stop_loss_portion = 50
DEFAULT_DCA_SO2_stop_loss_trigger = -20
DEFAULT_DCA_SO2_stop_loss_portion = 25