|
@@ -112,11 +112,12 @@ class RiskCommands(InfoCommandsBase):
|
|
|
|
|
|
# Add trading statistics
|
|
# Add trading statistics
|
|
if stats:
|
|
if stats:
|
|
|
|
+ performance_stats = stats.get_performance_stats()
|
|
message += f"\n📊 <b>Trading Statistics:</b>\n"
|
|
message += f"\n📊 <b>Trading Statistics:</b>\n"
|
|
- message += f"Win Rate: {stats.get('win_rate', 0):.2f}%\n"
|
|
|
|
- message += f"Profit Factor: {stats.get('profit_factor', 0):.2f}\n"
|
|
|
|
- message += f"Average Win: {await self.formatter.format_price_with_symbol(stats.get('avg_win', 0))}\n"
|
|
|
|
- message += f"Average Loss: {await self.formatter.format_price_with_symbol(stats.get('avg_loss', 0))}\n"
|
|
|
|
|
|
+ message += f"Win Rate: {performance_stats.get('win_rate', 0):.2f}%\n"
|
|
|
|
+ message += f"Profit Factor: {performance_stats.get('profit_factor', 0):.2f}\n"
|
|
|
|
+ message += f"Average Win: {await self.formatter.format_price_with_symbol(performance_stats.get('average_win', 0))}\n"
|
|
|
|
+ message += f"Average Loss: {await self.formatter.format_price_with_symbol(performance_stats.get('average_loss', 0))}\n"
|
|
|
|
|
|
await update.message.reply_text(message, parse_mode='HTML')
|
|
await update.message.reply_text(message, parse_mode='HTML')
|
|
|
|
|