From 37664f052305cb0b791f2f9e6c7f9d8f7626f478 Mon Sep 17 00:00:00 2001 From: hmo Date: Wed, 22 Jul 2026 23:46:18 +0800 Subject: [PATCH] =?UTF-8?q?fix(prompt):=20MA=E8=A1=8C=E4=BB=85=E5=9C=A8?= =?UTF-8?q?=E5=8F=AF=E7=94=A8=E6=97=B6=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/profile-scripts/batch_reassess.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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. 止盈应参考弱压/强压,不得明显高于强压