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",