feat: trend pullback preview TP per DCA leg with unified stop loss across exchanges

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-05 16:10:27 +08:00
parent 674d721072
commit 31756e838d
7 changed files with 292 additions and 23 deletions
+4 -1
View File
@@ -111,8 +111,11 @@ def build_trend_dca_levels(plan: dict) -> list[dict]:
def attach_trend_dca_levels(plan: dict) -> dict:
from strategy_trend_lib import enrich_trend_dca_levels_with_tp
d = dict(plan or {})
d["dca_levels"] = build_trend_dca_levels(d)
levels = build_trend_dca_levels(d)
d["dca_levels"] = enrich_trend_dca_levels_with_tp(d, levels)
return d