fix: run_mr_backtest tp_pct=None兜底默认0.18; evolution_api baseline改为v_weak/v_oversold, get_health_trend默认v_weak

This commit is contained in:
hmo
2026-08-12 00:53:47 +08:00
parent 614b4570d6
commit 38e4a5b160
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -40,9 +40,9 @@ def get_evolution_dashboard():
""").fetchall():
evolution.append(dict(r))
# 当前策略基线
# 当前策略基线2026-08-11: 改为当前实盘 v_weak + 新策略 v_oversold
baseline = {}
for v in ['v_next4', 'v_next3', 'v8.1']:
for v in ['v_weak', 'v_oversold']:
r = conn.execute("""
SELECT results_json FROM strategy_research
WHERE version=? AND period_tag='5y' ORDER BY id DESC LIMIT 1
@@ -174,7 +174,7 @@ def get_combo_dashboard():
}
def get_health_trend(version='v_next4', days=30):
def get_health_trend(version='v_weak', days=30):
"""健康度趋势"""
conn = sqlite3.connect(DB)
conn.row_factory = sqlite3.Row