diff --git a/static/index.html b/static/index.html index 1a85774e..04d1336f 100644 --- a/static/index.html +++ b/static/index.html @@ -1974,11 +1974,13 @@ function renderStrategyTable(strategies) { const isBest = invert ? (val === bestVal && bestVal !== 999) : (val === bestVal && bestVal !== -999); return isBest ? 'text-green-400 font-bold' : ''; }; - let html = '
| 版本 | 名称 | ' + '总收益 | ' + '最终资产 | ' + '年化 | ' + + '交易数 | ' + + '均持仓 | ' + '胜率 | ' + '平均收益 | 夏普 | ' + '盈亏比 | 资产回撤 | ' + @@ -1995,6 +1997,8 @@ function renderStrategyTable(strategies) { '' + (pf.total_return_pct != null ? pf.total_return_pct + '%' : '—') + ' | ' + '' + (pf.capital_final != null ? '¥' + (pf.capital_final/10000).toFixed(0) + '万' : '—') + ' | ' + '' + (pf.cagr_pct != null ? pf.cagr_pct + '%' : '—') + ' | ' + + '' + (st.total_trades != null ? st.total_trades : '—') + ' | ' + + '' + (st.avg_hold_days != null ? st.avg_hold_days + 'd' : '—') + ' | ' + '' + (st.win_rate != null ? st.win_rate + '%' : '—') + ' | ' + '' + (st.avg_profit_pct != null ? st.avg_profit_pct + '%' : '—') + ' | ' + '' + (st.sharpe_ratio != null ? st.sharpe_ratio : '—') + ' | ' + @@ -2004,7 +2008,7 @@ function renderStrategyTable(strategies) { '' + '
|---|