Rename sell_profit_only to exit_profit_only

This commit is contained in:
Matthias
2022-04-05 20:00:35 +02:00
parent 5c01969969
commit bba9629a2a
17 changed files with 63 additions and 46 deletions

View File

@@ -91,7 +91,7 @@ class IStrategy(ABC, HyperStrategyMixin):
process_only_new_candles: bool = False
use_sell_signal: bool
sell_profit_only: bool
exit_profit_only: bool
sell_profit_offset: float
ignore_roi_if_buy_signal: bool
@@ -881,8 +881,8 @@ class IStrategy(ABC, HyperStrategyMixin):
current_rate = rate
current_profit = trade.calc_profit_ratio(current_rate)
if (self.sell_profit_only and current_profit <= self.sell_profit_offset):
# sell_profit_only and profit doesn't reach the offset - ignore sell signal
if (self.exit_profit_only and current_profit <= self.sell_profit_offset):
# exit_profit_only and profit doesn't reach the offset - ignore sell signal
pass
elif self.use_sell_signal and not enter:
if exit_: