chore: improve variable naming
This commit is contained in:
@@ -1376,11 +1376,12 @@ class FreqtradeBot(LoggingMixin):
|
|||||||
if should_exit.exit_flag:
|
if should_exit.exit_flag:
|
||||||
exit_tag1 = exit_tag if should_exit.exit_type == ExitType.EXIT_SIGNAL else None
|
exit_tag1 = exit_tag if should_exit.exit_type == ExitType.EXIT_SIGNAL else None
|
||||||
if trade.has_open_orders:
|
if trade.has_open_orders:
|
||||||
pc = self._exit_reason_cache.get(
|
if prev_eval := self._exit_reason_cache.get(
|
||||||
f"{trade.pair}_{trade.id}_{exit_tag1 or should_exit.exit_reason}", None
|
f"{trade.pair}_{trade.id}_{exit_tag1 or should_exit.exit_reason}", None
|
||||||
)
|
):
|
||||||
if pc:
|
logger.debug(
|
||||||
logger.debug(f"Exit reason already seen this candle, first seen at {pc}")
|
f"Exit reason already seen this candle, first seen at {prev_eval}"
|
||||||
|
)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
logger.info(
|
logger.info(
|
||||||
|
|||||||
Reference in New Issue
Block a user