Let semi-auto reopen nearest expiry; ignore one-expiry-per-day.
Far quarterly skips were masking usable near OTM quotes like 260810. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1186,7 +1186,12 @@ class StrategyEngine:
|
||||
one_expiry_per_day = self.ledger.get_setting_bool(
|
||||
"one_expiry_per_day", s.one_expiry_per_day
|
||||
)
|
||||
if pick is not None and one_expiry_per_day:
|
||||
# 半自动人工授权:允许同到期再开;全自动仍受一日一到期约束
|
||||
if (
|
||||
pick is not None
|
||||
and one_expiry_per_day
|
||||
and not is_semi_auto(self.ledger)
|
||||
):
|
||||
from .clock import (
|
||||
expiry_blocked_by_one_per_day,
|
||||
used_expiry_ymds,
|
||||
|
||||
Reference in New Issue
Block a user