feat: 温区表/整体表笔数列分开显示 成交数/信号数(悬停看信号总数)——s2_panic 42/2255, b_td1 353/5000
This commit is contained in:
+3
-1
@@ -2553,7 +2553,9 @@ function renderStrategyTable(strategies) {
|
||||
cell('full_return_pct', retShow, v => v + '%', 'font-bold text-amber-300') +
|
||||
cell('capital_final', capShow, v => '¥' + (v/10000).toFixed(0) + '万') +
|
||||
cell('cagr_pct', cagrShow, v => v + '%', hl(cagrShow, best.cagr_pct)) +
|
||||
cell('total_trades', tradesShow, v => (v > 999 ? Math.round(v/1000) + 'k' : v), '', false) +
|
||||
(st.portfolio && st.portfolio.positions_taken != null
|
||||
? '<td class="text-right px-2 py-1.5" title="信号数 ' + (tradesShow != null ? tradesShow : '?') + ' → 实际成交 ' + st.portfolio.positions_taken + ' 笔(10等分仓位组合模拟)">' + st.portfolio.positions_taken + (tradesShow != null && tradesShow !== st.portfolio.positions_taken ? ' <span class="text-[10px] text-slate-500">/' + (tradesShow > 999 ? Math.round(tradesShow/1000) + 'k' : tradesShow) + '</span>' : '') + '</td>'
|
||||
: cell('total_trades', tradesShow, v => (v > 999 ? Math.round(v/1000) + 'k' : v), '', false)) +
|
||||
cell('avg_hold_days', holdShow, v => v + 'd') +
|
||||
cell('win_rate', wrShow, v => v + '%', (isOverall ? hl(wrShow, best.win_rate) : (wrShow >= 50 ? 'text-green-400' : 'text-red-400'))) +
|
||||
cell('avg_profit_pct', pnlShow, v => v + '%', (pnlShow || 0) >= 0 ? 'text-green-400' : 'text-red-400') +
|
||||
|
||||
Reference in New Issue
Block a user