Rename edge.stoploss to get_stoploss

this will make it clear that it's different from
This commit is contained in:
Matthias
2023-02-14 07:18:11 +01:00
parent bddec476f9
commit 6e55a873b3
3 changed files with 8 additions and 8 deletions

View File

@@ -1078,7 +1078,7 @@ class FreqtradeBot(LoggingMixin):
datetime.now(timezone.utc),
enter=enter,
exit_=exit_,
force_stoploss=self.edge.stoploss(trade.pair) if self.edge else 0
force_stoploss=self.edge.get_stoploss(trade.pair) if self.edge else 0
)
for should_exit in exits:
if should_exit.exit_flag:
@@ -1172,7 +1172,7 @@ class FreqtradeBot(LoggingMixin):
if not stoploss_order:
stop_price = trade.stoploss_or_liquidation
if self.edge:
stoploss = self.edge.stoploss(pair=trade.pair)
stoploss = self.edge.get_stoploss(pair=trade.pair)
stop_price = (
trade.open_rate * (1 - stoploss) if trade.is_short
else trade.open_rate * (1 + stoploss)