From 98d6189b69c843518b010287cabc9c2f1160c8e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9F=A5=E5=BE=AE?= Date: Fri, 10 Jul 2026 13:17:40 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=AF=8F=E7=BB=B4=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=A0=87=E6=B3=A8=E6=97=B6=E9=97=B4=E7=AA=97=E5=8F=A3(MA?= =?UTF-8?q?=E6=97=A5=E6=95=B0/=E8=B5=84=E9=87=91=E8=BF=915=E6=97=A5/?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E6=9C=80=E8=BF=913=E6=9D=A1/=E8=B4=A2?= =?UTF-8?q?=E6=8A=A5=E6=9C=80=E6=96=B0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/batch_reassess.py | 16 ++++++++-------- scripts/per_stock_reassess.py | 10 +++++----- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/scripts/batch_reassess.py b/scripts/batch_reassess.py index 8aa48526..994f0740 100644 --- a/scripts/batch_reassess.py +++ b/scripts/batch_reassess.py @@ -127,14 +127,14 @@ def build_prompt(data): ⚠️ 重要:以下9个维度不是独立分析的,你必须交叉对比后给出综合结论。 例如:如果消息面利好但资金流在流出,说明利好可能是出货;如果基本面强但技术面破位,说明估值可能还没到底。 -当前数据(以下数据均来自实时API,禁止使用模型训练数据): -大盘:{data.get('macro','震荡')} -最新价:{data.get('price',0)} 涨跌:{data.get('change_pct','0')}% -PE={data.get('pe','?')} 市值={data.get('mcap','?')}亿 -行业:{data.get('sector_context','?')} -技术面:{data.get('tech_snapshot','')[:300]} -资金流:{_flow_note} -消息面:{_news_note} +当前数据(以下数据均来自实时API,每条标注时间窗口,禁止使用模型内部训练数据): +大盘:{data.get('macro','震荡')}(当日实时) +最新价:{data.get('price',0)} 涨跌:{data.get('change_pct','0')}%(当日实时) +PE={data.get('pe','?')}(最新财报) 市值={data.get('mcap','?')}亿 +行业:{data.get('sector_context','?')}(当日实时) +技术面:{data.get('tech_snapshot','')[:300]}(MA=5/10/20/60日 支撑阻力=近20日 量价=当日+近5日趋势) +资金流:{_flow_note}(近5日累计) +消息面:{_news_note}(最近3条,自动标注抓取时间) 当前信号:{data.get('timing_signal','?')} 分类:{data.get('stock_category','?')} 原策略:{(data.get('action','') or '')[:200]} diff --git a/scripts/per_stock_reassess.py b/scripts/per_stock_reassess.py index f4102935..252ecb90 100644 --- a/scripts/per_stock_reassess.py +++ b/scripts/per_stock_reassess.py @@ -429,12 +429,12 @@ def main(): ⚠️ 重要:12个维度必须交叉对比,找出矛盾/共振点,给出综合判断。 -当前数据(实时API,禁止使用模型训练数据): -大盘={_macro_desc or "震荡"} | PE/市值={_pe_val} {_pb_val} | 价格={price} 区间={entry.get("entry_low",0)}~{entry.get("entry_high",0)} 止损={entry.get("stop_loss",0)} 止盈={entry.get("take_profit",0)} RR={result.get("rr_ratio",entry.get("rr_ratio",0))} | 信号={result.get("timing_signal") or entry.get("timing_signal","")} | 行业={(result.get("sector_context") or entry.get("sector_context",""))[:50]} +当前数据(实时API,每条标注时间窗口,禁止使用模型训练数据): +大盘={_macro_desc or "震荡"}(当日实时) | PE/市值={_pe_val} {_pb_val}(最新财报) | 价格={price} 区间={entry.get("entry_low",0)}~{entry.get("entry_high",0)} 止损={entry.get("stop_loss",0)} 止盈={entry.get("take_profit",0)} RR={result.get("rr_ratio",entry.get("rr_ratio",0))} | 信号={result.get("timing_signal") or entry.get("timing_signal","")} | 行业={(result.get("sector_context") or entry.get("sector_context",""))[:50]}(当日实时) 策略={(result.get("action") or entry.get("action",""))[:200]} -技术={(result.get("tech_snapshot") or entry.get("tech_snapshot",""))[:200]} -资金流={_flow_note} -消息面={_news_note} +技术={(result.get("tech_snapshot") or entry.get("tech_snapshot",""))[:200]}(MA=5/10/20/60日 支撑阻力=近20日 量价=当日+近5日趋势) +资金流={_flow_note}(近5日累计) +消息面={_news_note}(最近3条,自动标注抓取时间) 格式: 【交叉分析】哪些维度矛盾/共振,关键信号