Преглед изворни кода

Update TradingStats to enhance display of average trade duration and portfolio max drawdown

- Modified the formatting of average trade duration and portfolio max drawdown messages for improved clarity by removing unnecessary HTML tags.
- Ensured consistency in the presentation of statistics within the TradingStats class.
Carles Sentis пре 2 дана
родитељ
комит
1edb9e738a
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/trading/trading_stats.py

+ 2 - 2
src/trading/trading_stats.py

@@ -601,8 +601,8 @@ class TradingStats:
             stats_text_parts.append(f"• Best Performing Token: {best_token_stats['name']} ({best_token_stats['pnl_percentage']:+.2f}%)")
             stats_text_parts.append(f"• Worst Performing Token: {worst_token_stats['name']} ({worst_token_stats['pnl_percentage']:+.2f}%)")
             
-            stats_text_parts.append(f"• Average Trade Duration: N/A <font color=\"grey\"><i>(Data collection required)</i></font>")
-            stats_text_parts.append(f"• Portfolio Max Drawdown: {risk['max_drawdown']:.2f}% <font color=\"grey\"><i>(Daily Balance based)</i></font>")
+            stats_text_parts.append(f"• Average Trade Duration: N/A <i>(Data collection required)</i>")
+            stats_text_parts.append(f"• Portfolio Max Drawdown: {risk['max_drawdown']:.2f}% <i>(Daily Balance based)</i>")
             # Future note: \"[Info: Trading P&L specific drawdown analysis planned]\"
             
             # Session Info