fix: per_stock_reassess 476行rr_ratio用holding的(修rr未定义NameError,RR由scanner定不覆盖)

This commit is contained in:
xxm
2026-08-18 15:42:47 +08:00
parent df4ea2faac
commit 73703649f3
+1 -1
View File
@@ -376,7 +376,7 @@ def main():
"strategy_type": "自选策略" if entry.get("type", "") in ("自选策略", "watchlist") else "持仓策略",
"action": result.get("action", ""),
"timing_signal": result.get("timing_signal", entry.get("timing_signal", "")),
"rr_ratio": rr, # 2026-08-18 统一用 77 行 entry/stop/tp 算的 rr(与 promote 同口径)
"rr_ratio": entry.get("rr_ratio", 0), # 2026-08-18 RR由scanner定,不覆盖(用holding的)
"tech_snapshot": result.get("tech_snapshot", entry.get("tech_snapshot", "")),
"stock_category": result.get("stock_category", entry.get("stock_category", "")),
"sector_context": result.get("sector_context", entry.get("sector_context", "")),