feat: 温区自适应全链路——动态策略库(regime_perf全策略×温区实测,含被埋没的v_mr_sel trend_down 93%/v7.3 trend_up 94%), router v5按当前温区激活, 选股(mr_scanner/predictive_oversold平滑温区门控)+买卖(price_monitor非激活抑制买入机会风控仍推)+重评(strategy_lifecycle平滑温区trend_down vs 原始choppy)全接入, 前端research Tab温区横幅+温度+激活策略

This commit is contained in:
xxm
2026-08-13 10:36:00 +08:00
parent a62b05f11d
commit 1094bf75af
4 changed files with 310 additions and 2 deletions
+13 -2
View File
@@ -2035,8 +2035,19 @@ def reassess_with_context(code, name, price, cost, shares, current_action,
# 大盘市场阶段(market_regime)— 与回测 _load_index_ctx 同算法,趋势市放行追涨
market_regime = None
try:
import market_regime as _mr
market_regime = _mr.load_market_regime()
# 2026-08-13 平滑温区优先(K=5 regime_tracker),回退原始 market_regime
import sys as _sys
from pathlib import Path as _P
_sp = _P("/home/hmo/MoFin/deploy/profile-scripts")
if str(_sp) not in _sys.path:
_sys.path.insert(0, str(_sp))
from regime_gate import get_current_regime
_rg = get_current_regime()
if _rg and _rg.get("regime") != "unknown":
market_regime = _rg
else:
import market_regime as _mr
market_regime = _mr.load_market_regime()
except Exception:
pass # market_regime 不可用时不阻塞单只重评