From 13ff507a3e1d77a5321896cb1cf43e29806111f3 Mon Sep 17 00:00:00 2001 From: xxm Date: Tue, 18 Aug 2026 12:35:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20rr=5Fratio=20387/484=E8=A1=8C=E7=BB=9F?= =?UTF-8?q?=E4=B8=80=E7=94=A8entry/stop/tp=E7=AE=97=E7=9A=84rr,=E4=B8=8D?= =?UTF-8?q?=E5=86=8D=E7=94=A8lifecycle=E9=94=99=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/profile-scripts/per_stock_reassess.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/profile-scripts/per_stock_reassess.py b/deploy/profile-scripts/per_stock_reassess.py index 0ebaed0e..31f1e687 100644 --- a/deploy/profile-scripts/per_stock_reassess.py +++ b/deploy/profile-scripts/per_stock_reassess.py @@ -384,7 +384,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": (result.get("rr_ratio") or entry.get("rr_ratio") or 0), + "rr_ratio": rr, # 2026-08-18 统一用 77 行 entry/stop/tp 算的 rr(与 promote 同口径) "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", "")), @@ -481,7 +481,7 @@ def main(): "take_profit": result.get("take_profit"), "tech_snapshot": result.get("tech_snapshot", entry.get("tech_snapshot")), "timing_signal": result.get("timing_signal", entry.get("timing_signal")), - "rr_ratio": (result.get("rr_ratio") or entry.get("rr_ratio") or 0), + "rr_ratio": rr, # 2026-08-18 统一用 77 行 entry/stop/tp 算的 rr(与 promote 同口径) "status": result.get("status", "updated"), "price": price, "currency": "HKD" if is_hk else "CNY",