mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 08:33:07 +00:00
@@ -347,7 +347,7 @@ def generate_trading_stats(results: DataFrame) -> dict[str, Any]:
|
|||||||
else timedelta()
|
else timedelta()
|
||||||
)
|
)
|
||||||
winner_holding_min = (
|
winner_holding_min = (
|
||||||
timedelta(minutes=round(winning_duration[winning_duration > 0].min()))
|
timedelta(minutes=round(winning_duration.min()))
|
||||||
if not winning_duration.empty
|
if not winning_duration.empty
|
||||||
else timedelta()
|
else timedelta()
|
||||||
)
|
)
|
||||||
@@ -362,7 +362,7 @@ def generate_trading_stats(results: DataFrame) -> dict[str, Any]:
|
|||||||
else timedelta()
|
else timedelta()
|
||||||
)
|
)
|
||||||
loser_holding_min = (
|
loser_holding_min = (
|
||||||
timedelta(minutes=round(losing_duration[losing_duration > 0].min()))
|
timedelta(minutes=round(losing_duration.min()))
|
||||||
if not losing_duration.empty
|
if not losing_duration.empty
|
||||||
else timedelta()
|
else timedelta()
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user