Format only winner/loser durations

This commit is contained in:
mrpabloyeah
2025-05-18 13:39:50 +02:00
parent cbb0294cd2
commit 60157606fe

View File

@@ -383,7 +383,7 @@ def generate_trading_stats(results: DataFrame) -> dict[str, Any]:
"losses": len(losing_trades),
"draws": len(draw_trades),
"winrate": len(winning_trades) / len(results) if len(results) else 0.0,
"holding_avg": format_duration(holding_avg),
"holding_avg": holding_avg,
"holding_avg_s": holding_avg.total_seconds(),
"winner_holding_min": format_duration(winner_holding_min),
"winner_holding_min_s": winner_holding_min.total_seconds(),