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:
@@ -163,8 +163,31 @@ def get_combo_dashboard():
|
||||
}
|
||||
|
||||
conn.close()
|
||||
|
||||
# 2026-08-13 温区自适应:并入 strategy_weights.json(当前温区+温度+各策略权重/激活)
|
||||
# + strategy_alerts.json(三振出局状态)
|
||||
import json as _json
|
||||
from pathlib import Path as _Path
|
||||
_d = _Path("/home/hmo/MoFin/data")
|
||||
weights_data = None
|
||||
alerts_data = None
|
||||
try:
|
||||
_w = _d / "strategy_weights.json"
|
||||
if _w.exists():
|
||||
weights_data = _json.loads(_w.read_text(encoding="utf-8"))
|
||||
except Exception:
|
||||
pass
|
||||
try:
|
||||
_a = _d / "strategy_alerts.json"
|
||||
if _a.exists():
|
||||
alerts_data = _json.loads(_a.read_text(encoding="utf-8"))
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
return {
|
||||
"regime": regime,
|
||||
"regime_weights": weights_data, # 当前温区/温度/各策略权重/激活
|
||||
"strategy_alerts": alerts_data, # 三振出局状态
|
||||
"combos": combos,
|
||||
"members": members,
|
||||
"routing": [
|
||||
|
||||
Reference in New Issue
Block a user