diff --git a/frontend/paper-trading.html b/frontend/paper-trading.html index 8065052..396d749 100644 --- a/frontend/paper-trading.html +++ b/frontend/paper-trading.html @@ -524,65 +524,29 @@
-
已用保证金
-
- ${{ account.used_margin?.toFixed(2) || '0.00' }} +
收益率
+
+ {{ account.initial_balance ? (((account.current_balance - account.initial_balance) / account.initial_balance) * 100).toFixed(2) : '0.00' }}%
-
可用保证金
-
- ${{ account.available_margin?.toFixed(2) || '0.00' }} +
收益额
+
+ ${{ stats.total_pnl.toFixed(2) }}
-
杠杆 / 保证金率
-
- {{ account.leverage }}x / {{ account.margin_ratio?.toFixed(1) || '0' }}% -
-
-
-
持仓数 / 最大
-
- {{ account.active_orders || 0 }} / {{ account.max_orders || 10 }} -
-
-
-
总持仓价值
-
- ${{ account.total_position_value?.toFixed(2) || '0.00' }} -
-
-
- - -
-
-
总交易数
+
交易总数
{{ stats.total_trades }}
胜率
{{ stats.win_rate.toFixed(1) }}%
-
-
已实现盈亏
-
- ${{ stats.total_pnl.toFixed(2) }} -
-
盈亏比
{{ stats.profit_factor === Infinity ? '∞' : stats.profit_factor.toFixed(2) }}
-
-
平均盈利
-
${{ stats.average_win.toFixed(2) }}
-
-
-
平均亏损
-
${{ stats.average_loss.toFixed(2) }}
-