ls증권 히스토리 구독 넣음

This commit is contained in:
Your Name
2026-07-30 18:05:07 +09:00
parent 61bec4bd1d
commit 67eab24603
1593 changed files with 135733 additions and 1232 deletions

View File

@@ -320,6 +320,18 @@ def params_to_tail_env_patch(p: Dict[str, Any]) -> Dict[str, str]:
):
if js_k in p and p[js_k] is not None:
_set(env_k, p[js_k])
# 휩쏘 TRIGGER (Optuna TPE / apply-best) — 전략 전용 TAIL_WHIPSAW_*
if "whipsaw_enabled" in p:
_set("TAIL_WHIPSAW_FILTER_ENABLED", str(p["whipsaw_enabled"]).lower())
for js_k, env_k in (
("whipsaw_subbar_sec", "TAIL_WHIPSAW_SUBBAR_SEC"),
("whipsaw_lookback_sec", "TAIL_WHIPSAW_LOOKBACK_SEC"),
("whipsaw_dip_pct", "TAIL_WHIPSAW_DIP_PCT"),
("whipsaw_recovery_tol_pct", "TAIL_WHIPSAW_RECOVERY_TOL_PCT"),
("whipsaw_min_subbars", "TAIL_WHIPSAW_MIN_SUBBARS"),
):
if js_k in p and p[js_k] is not None and str(p[js_k]).strip() != "":
_set(env_k, p[js_k])
return patch