From 5b0e67ad2b23335fef38a090e6c2b9de2f957d99 Mon Sep 17 00:00:00 2001 From: xxm Date: Sat, 15 Aug 2026 23:47:35 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=89=8D=E7=AB=AF=E6=96=B9=E6=A1=88A?= =?UTF-8?q?=E2=80=94=E2=80=94=E7=AD=96=E7=95=A5=E5=8F=AA=E5=9C=A8=E9=80=82?= =?UTF-8?q?=E5=BA=94=E6=B8=A9=E5=8C=BA(best=5Fregime)=E8=A1=A8=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E4=B8=80=E8=A1=8C,=E6=89=80=E6=9C=89=E5=88=97?= =?UTF-8?q?=E5=AF=B9=E5=BA=94=E9=80=82=E5=BA=94=E6=B8=A9=E5=8C=BA=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/index.html b/static/index.html index 93085df4..f895159f 100644 --- a/static/index.html +++ b/static/index.html @@ -2479,9 +2479,9 @@ function renderStrategyTable(strategies) { ''; }; const renderRegimeTable = (strats, rg, isCur, marketLabel, tempHtml) => { - // 2026-08-15 单温区表格:该市场在该温区有数据的所有可用策略(按该温区胜率降序),激活策略高亮 + // 2026-08-15 方案A:策略只在适应温区(best_regime)表显示一行——所有列都是该策略在适应温区的数据 const metas = strats - .filter(s => (s.regime_winrates || {})[rg] && (s.regime_winrates || {})[rg].trades != null) + .filter(s => s.best_regime === rg && (s.regime_winrates || {})[rg] && (s.regime_winrates || {})[rg].trades != null) .sort((x, y) => ((y.regime_winrates || {})[rg].win_rate || -1) - ((x.regime_winrates || {})[rg].win_rate || -1)); if (!metas.length) return ''; const meta = REGIME_META[rg] || {icon: '🌐', name: rg}; @@ -2489,7 +2489,7 @@ function renderStrategyTable(strategies) { '
' + marketLabel + ' · ' + meta.icon + ' ' + meta.name + (isCur ? ' 当前温区' : '') + (tempHtml || '') + '(' + metas.length + '个策略)' + - '' + (isCur ? '当前温区匹配即激活' : '该温区下有数据(参考)') + '
' + + '' + (isCur ? '当前温区匹配即激活' : '策略适应温区(best_regime)') + '' + '
' + th('version', '版本', 'text-left') + th('name', '名称', 'text-left') + th('win_rate', '胜率', 'text-right') + th('avg_profit', '平均收益', 'text-right') + th('trades', '笔数', 'text-right') +