فهرست منبع

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