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:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user