diff --git a/deploy/profile-scripts/batch_reassess.py b/deploy/profile-scripts/batch_reassess.py index 41fac59f..0774b134 100644 --- a/deploy/profile-scripts/batch_reassess.py +++ b/deploy/profile-scripts/batch_reassess.py @@ -297,11 +297,12 @@ def build_prompt(data): # ── 技术位锚 section(2026-07-22 老爸:确定性计算值,LLM 必须尊重)── _ta = data.get("ta") or {} if _ta.get("weak_support"): + _ma_parts = [f"{k.upper()}={_ta[k]}" for k in ("ma5", "ma10", "ma20", "ma60") if _ta.get(k)] + _ma_line = (" ".join(_ma_parts) + "\n") if _ma_parts else "" _ta_sec = f"""【技术位锚】(以下数值由系统基于K线/均线确定性计算,是客观事实,不是你的估计值) 强撑={_ta.get('strong_support')} 弱撑={_ta.get('weak_support')} 枢轴={_ta.get('pivot')} 弱压={_ta.get('weak_resist')} 强压={_ta.get('strong_resist')} 有效区间={_ta.get('effective_range')} -MA5={_ta.get('ma5')} MA10={_ta.get('ma10')} MA20={_ta.get('ma20')} MA60={_ta.get('ma60')} -⚠️ 参数锚定纪律(必须遵守,输出前自检): +{_ma_line}⚠️ 参数锚定纪律(必须遵守,输出前自检): 1. 买入区应落在技术位之间:下沿参考弱撑/强撑附近,上沿参考枢轴/弱压附近 2. 止损必须严格低于买入区下沿——放在弱撑下方1-3%或强撑附近;严禁止损≥区间下沿(等于把止损设在买入价上,下沿买入立即止损,RR恒为0) 3. 止盈应参考弱压/强压,不得明显高于强压