sell_profit_offset -> exit_profit_offset

This commit is contained in:
Matthias
2022-04-05 20:03:20 +02:00
parent bba9629a2a
commit 5ce5c70be6
13 changed files with 25 additions and 23 deletions

View File

@@ -92,7 +92,7 @@ class IStrategy(ABC, HyperStrategyMixin):
use_sell_signal: bool
exit_profit_only: bool
sell_profit_offset: float
exit_profit_offset: float
ignore_roi_if_buy_signal: bool
# Position adjustment is disabled by default
@@ -881,7 +881,7 @@ class IStrategy(ABC, HyperStrategyMixin):
current_rate = rate
current_profit = trade.calc_profit_ratio(current_rate)
if (self.exit_profit_only and current_profit <= self.sell_profit_offset):
if (self.exit_profit_only and current_profit <= self.exit_profit_offset):
# exit_profit_only and profit doesn't reach the offset - ignore sell signal
pass
elif self.use_sell_signal and not enter: