fix: 温区表笔数列补回 成交/信号 分开显示(前次被guard回滚只提交了整体表)

This commit is contained in:
xxm
2026-08-16 20:59:47 +08:00
parent a3078abab7
commit d0a23847bd
+4 -2
View File
@@ -2629,7 +2629,9 @@ function renderStrategyTable(strategies) {
'</td>' +
cell('win_rate', wr, v => v + '%', wr != null && wr >= 50 ? 'text-green-400' : 'text-red-400') +
cell('avg_profit_pct', pnl, v => v + '%', (pnl || 0) >= 0 ? 'text-green-400' : 'text-red-400') +
cell('total_trades', tr, v => v, '', false) +
(rw && rw.positions_taken != null
? '<td class="text-right px-2 py-1.5" title="信号数 ' + (tr != null ? tr : '?') + '(组合模拟实际成交 ' + rw.positions_taken + ' 笔)">' + rw.positions_taken + (tr != null && tr !== rw.positions_taken ? ' <span class="text-[10px] text-slate-500">/' + tr + '</span>' : '') + '</td>'
: cell('total_trades', tr, v => v, '', false)) +
cell('avg_hold_days', rw.avg_hold_days != null ? rw.avg_hold_days : null, v => v + 'd') +
cell('cagr_pct', cagr, v => v + '%', 'font-bold text-amber-300') +
cell('composite', comp, v => v, 'font-bold text-amber-300') +
@@ -2701,7 +2703,7 @@ function renderStrategyTable(strategies) {
th('version', '版本', 'text-left') + th('name', '名称', 'text-left') +
'<th class="text-center px-2 py-1.5" title="长期10y/近期2y/当下1y 适应温区年化 vs 大盘">资格</th>' +
'<th class="text-center px-2 py-1.5">可用</th>' +
th('win_rate', '胜率', 'text-right') + th('avg_profit', '平均收益', 'text-right') + th('trades', '笔数', 'text-right') +
th('win_rate', '胜率', 'text-right') + th('avg_profit', '平均收益', 'text-right') + th('trades', '成交/信号', 'text-right', '实际入场笔数 / 触发信号数(组合模拟10等分仓位下实际成交)') +
th('hold', '均持仓', 'text-right') + th('cagr', '年化', 'text-right') + th('composite', '综合', 'text-right') +
th('sharpe', '夏普', 'text-right') + th('profit_factor', '盈亏比', 'text-right') +
th('universality', '普适', 'text-right') + th('max_dd', '回撤', 'text-right') +