ls증권 히스토리 구독 넣음
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user