@@ -2363,7 +2363,7 @@ class FreqtradeBot(LoggingMixin):
|
|||||||
stake_currency=self.config["stake_currency"],
|
stake_currency=self.config["stake_currency"],
|
||||||
dry_run=self.config["dry_run"],
|
dry_run=self.config["dry_run"],
|
||||||
)
|
)
|
||||||
if self.strategy.use_custom_stoploss:
|
if self.strategy.use_custom_stoploss and trade.is_open:
|
||||||
current_rate = self.exchange.get_rate(
|
current_rate = self.exchange.get_rate(
|
||||||
trade.pair, side="exit", is_short=trade.is_short, refresh=True
|
trade.pair, side="exit", is_short=trade.is_short, refresh=True
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user