There are two attributes which have to be set for the required effect.
SO(X)_take_profit_target
sets the value which will trigger the Take Profit Scale out.
SO(X)_take_profit_portion
sets the percentage of the holding which will be sold when the target value is met. The calculation of the percentage is always based on the original holding amount. Before SO1 is triggered.
You can setup several scale out sells by altering (X).
Note: If the you specify a portion and the rest amount would become dust. The bot will sell 100% of your holdings.
We have 1000 XRP.
DEFAULT_A_sell_strategy = RSI
DEFAULT_A_sell_value = 80
# If the XRP price rises to give us a profit of 2% or more
# ProfitTrailer will attempt to sell 40% (400 XRP).
# We have 600 Left.
DEFAULT_SO1_take_profit_target = 2
DEFAULT_SO1_take_profit_portion = 40
# Now regardless of the XRP price if Strategy A is true (RSI is bigger than 80 )
# ProfitTrailer will attempt to sell 25% (250 XRP).
# We will have 350 Left.
DEFAULT_SO2_take_profit_target = A
DEFAULT_SO2_take_profit_portion = 25
We have 10 LTC.
DEFAULT_DCA_SO1_take_profit_target = 2
DEFAULT_DCA_SO1_take_profit_portion = 50
DEFAULT_DCA_SO2_take_profit_target = 4
DEFAULT_DCA_SO2_take_profit_portion = 25
If the LTC price rises to give us a profit of 2% or more ProfitTrailer will attempt to sell 50% (5 LTC). We have 5 Left.
If the price continues to rise to 4% ProfitTrailer will attempt to sell a further 25% of the original holding (2.5 LTC)