From 5d2d849226f627ef7f3c020d50d08a0bfc73797b Mon Sep 17 00:00:00 2001 From: ZhouYongyou <128128010+zhouyongyou@users.noreply.github.com> Date: Mon, 3 Nov 2025 19:58:30 +0800 Subject: [PATCH] =?UTF-8?q?refactor(prompts):=20add=20comprehensive=20part?= =?UTF-8?q?ial=5Fclose=20guidance=20to=20adaptive.txt=20Add=20detailed=20g?= =?UTF-8?q?uidance=20chapter=20for=20dynamic=20TP/SL=20management=20and=20?= =?UTF-8?q?partial=20close=20operations.=20##=20Changes=20-=20New=20chapte?= =?UTF-8?q?r:=20"=E5=8A=A8=E6=80=81=E6=AD=A2=E7=9B=88=E6=AD=A2=E6=8D=9F?= =?UTF-8?q?=E4=B8=8E=E9=83=A8=E5=88=86=E5=B9=B3=E4=BB=93=E6=8C=87=E5=BC=95?= =?UTF-8?q?"=20(Dynamic=20TP/SL=20&=20Partial=20Close=20Guidance)=20-=20In?= =?UTF-8?q?serted=20between=20"=E5=8F=AF=E7=94=A8=E5=8A=A8=E4=BD=9C"=20(Ac?= =?UTF-8?q?tions)=20and=20"=E5=86=B3=E7=AD=96=E6=B5=81=E7=A8=8B"=20(Decisi?= =?UTF-8?q?on=20Flow)=20sections=20-=204=20key=20guidance=20points=20cover?= =?UTF-8?q?ing:=20=20=201.=20Partial=20close=20best=20practices=20(use=20c?= =?UTF-8?q?lear=20percentages=20like=2025%/50%/75%)=20=20=202.=20Reassessi?= =?UTF-8?q?ng=20remaining=20position=20after=20partial=20exit=20=20=203.?= =?UTF-8?q?=20Proper=20use=20cases=20for=20update=5Fstop=5Floss=20/=20upda?= =?UTF-8?q?te=5Ftake=5Fprofit=20=20=204.=20Multi-stage=20exit=20strategy?= =?UTF-8?q?=20requirements=20##=20Benefits=20-=20=E2=9C=85=20Provides=20co?= =?UTF-8?q?ncrete=20operational=20guidelines=20for=20AI=20decision-making?= =?UTF-8?q?=20-=20=E2=9C=85=20Clarifies=20when=20and=20how=20to=20use=20pa?= =?UTF-8?q?rtial=5Fclose=20effectively=20-=20=E2=9C=85=20Emphasizes=20rema?= =?UTF-8?q?ining=20position=20management=20(prevents=20"orphan"=20position?= =?UTF-8?q?s)=20-=20=E2=9C=85=20Aligns=20with=20existing=20backend=20suppo?= =?UTF-8?q?rt=20for=20partial=5Fclose=20action=20##=20Background=20While?= =?UTF-8?q?=20adaptive.txt=20already=20lists=20partial=5Fclose=20as=20an?= =?UTF-8?q?=20available=20action,=20it=20lacked=20detailed=20operational?= =?UTF-8?q?=20guidance.=20This=20enhancement=20fills=20that=20gap=20by=20p?= =?UTF-8?q?roviding=20specific=20percentages,=20use=20cases,=20and=20multi?= =?UTF-8?q?-stage=20exit=20examples.=20Backend=20(decision/engine.go)=20al?= =?UTF-8?q?ready=20validates=20partial=5Fclose=20with=20close=5Fpercentage?= =?UTF-8?q?=20field,=20so=20this=20is=20purely=20a=20prompt=20enhancement?= =?UTF-8?q?=20with=20no=20code=20changes=20required.=20Co-Authored-By:=20t?= =?UTF-8?q?inkle-community=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- prompts/adaptive.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/prompts/adaptive.txt b/prompts/adaptive.txt index d5778caa..ded58263 100644 --- a/prompts/adaptive.txt +++ b/prompts/adaptive.txt @@ -97,6 +97,15 @@ --- +# 动态止盈止损与部分平仓指引 + +- `partial_close` 用于锁定阶段性收益或降低风险,建议使用清晰比例(如 25% / 50% / 75%),并说明目的(例:"锁定关键阻力前利润""减半仓等待回踩确认")。 +- 执行部分平仓后,应评估是否需要同步上调止损 / 下调止盈,确保剩余仓位符合新的风险回报结构。 +- `update_stop_loss` / `update_take_profit` 优先用于顺势推进(如跟踪新高新低),避免在无新证据下放宽止损。 +- 若计划分批退出,请在 `reasoning` 中描述剩余仓位的策略与失效条件,避免出现"减仓后不知道如何处理剩余部位"的情况。 + +--- + # 决策流程(严格顺序) ## 第 0 步:疑惑检查