feat: 仓位模型内生化(STRATEGY_SIZING)+次日开盘入场杜绝未来幻觉+列表仓位列——波段策略3仓/固定出场4-5仓,v11.0以3仓+115.4%居首

This commit is contained in:
hmo
2026-07-29 13:40:31 +08:00
parent ff54d37915
commit f69cab552b
2 changed files with 30 additions and 6 deletions
+2
View File
@@ -2029,6 +2029,7 @@ function renderStrategyTable(strategies) {
};
let html = '<div class="overflow-x-auto"><table class="w-full text-xs whitespace-nowrap"><thead><tr class="text-slate-500 border-b border-slate-700">' +
'<th class="text-left px-2 py-1.5">版本</th><th class="text-left px-2 py-1.5">名称</th>' +
'<th class="text-center px-2 py-1.5" title="该策略实证最优的仓位模型:波段/结构出场适合大仓少股,固定出场适合小仓多股">仓位</th>' +
'<th class="text-right px-2 py-1.5 text-amber-300">综合</th>' +
'<th class="text-right px-2 py-1.5">普适</th>' +
'<th class="text-right px-2 py-1.5 text-amber-400">总收益</th>' +
@@ -2051,6 +2052,7 @@ function renderStrategyTable(strategies) {
html += '<tr class="' + rowCls + '" onclick="showStrategyDetail(\'' + s.version + '\')">' +
'<td class="px-2 py-1.5 font-mono font-bold ' + (isCurrent ? 'text-emerald-400' : 'text-blue-400') + '">' + s.version + (isCurrent ? ' <span class="text-[10px] bg-emerald-500/20 text-emerald-300 px-1 rounded">当前</span>' : '') + ((s.market && s.market !== 'all') ? ' <span class="text-[10px] bg-cyan-500/20 text-cyan-300 px-1 rounded">' + (s.market === 'hk' ? '港' : 'A') + '</span>' : '') + '</td>' +
'<td class="px-2 py-1.5" title="' + (s.hypothesis || s.summary || '').replace(/"/g, '&quot;') + '">' + (s.name || '') + (smallSample ? ' <span class="text-amber-500" title="样本<40笔">⚠️</span>' : '') + '</td>' +
'<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)) +