feat: 列表双口径——新增全参与收益主列(单仓≥5万公平基线),集中仓为辅列,v11.0现原形(全参与仅+28.9%)
This commit is contained in:
+5
-2
@@ -1979,6 +1979,7 @@ function sortStrategies(strategies, key, dir) {
|
||||
case 'composite': return s._composite != null ? s._composite : -999;
|
||||
case 'universality': return (st.universality || {}).score || 0;
|
||||
case 'total_return': return pf.total_return_pct != null ? pf.total_return_pct : -999;
|
||||
case 'full_return': return (st.portfolio_full || {}).total_return_pct != null ? st.portfolio_full.total_return_pct : -999;
|
||||
case 'capital_final': return pf.capital_final || 0;
|
||||
case 'cagr': return pf.cagr_pct != null ? pf.cagr_pct : -999;
|
||||
case 'trades': return st.total_trades || 0;
|
||||
@@ -2084,7 +2085,8 @@ function renderStrategyTable(strategies) {
|
||||
th('sizing_slots', '仓位', 'text-center') +
|
||||
th('composite', '综合', 'text-right') +
|
||||
th('universality', '普适', 'text-right') +
|
||||
th('total_return', '总收益', 'text-right') +
|
||||
th('full_return', '全参与', 'text-right') +
|
||||
th('total_return', '集中仓', 'text-right') +
|
||||
th('capital_final', '最终资产', 'text-right') +
|
||||
th('cagr', '年化', 'text-right') +
|
||||
th('trades', '交易数', 'text-right') +
|
||||
@@ -2107,7 +2109,8 @@ function renderStrategyTable(strategies) {
|
||||
'<td class="text-center px-2 py-1.5 font-mono text-cyan-300">' + (st.sizing_slots ? st.sizing_slots + '仓' : '10仓') + '</td>' +
|
||||
cell('composite', s._composite, v => v, 'font-bold text-amber-300') +
|
||||
cell('universality_score', (st.universality || {}).score, v => v + '<span class="text-slate-500">/' + (st.universality || {}).months + '月</span>') +
|
||||
cell('total_return_pct', pf.total_return_pct, v => v + '%', 'font-bold ' + retCls + ' ' + hl(pf.total_return_pct, best.total_return_pct)) +
|
||||
cell('total_return_pct', (st.portfolio_full || {}).total_return_pct, v => v + '%', 'font-bold text-amber-300') +
|
||||
cell('total_return_pct', pf.total_return_pct, v => v + '%', retCls + ' ' + hl(pf.total_return_pct, best.total_return_pct)) +
|
||||
cell('capital_final', pf.capital_final, v => '¥' + (v/10000).toFixed(0) + '万') +
|
||||
cell('cagr_pct', pf.cagr_pct, v => v + '%', hl(pf.cagr_pct, best.cagr_pct)) +
|
||||
cell('total_trades', st.total_trades, v => v) +
|
||||
|
||||
Reference in New Issue
Block a user