sell_profit_offset -> exit_profit_offset
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user