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

@@ -455,12 +455,24 @@ def run_scalping_backtest_portfolio(
if entry_price <= 0:
continue
from kis_trader.engine.mid_enroll_entry_gate import bt_should_defer_mid_enroll
if bt_should_defer_mid_enroll(
str(next_c.get("candle_time") or ""),
code,
t,
tf_min=1,
universe_by_slot=universe_by_slot,
params=params,
):
continue
stop = entry_price * (1 - sl_pct)
target = entry_price * (1 + tp_pct)
pri = _buy_priority_key(code, slot_key, universe_by_slot)
pe_data: Dict[str, Any] = {
"entry_time": next_c["candle_time"],
"entry_price": entry_price,
"entry_bar_key": str(next_c.get("candle_time") or "")[:12],
"stop": stop,
"target": target,
}