Move settings hints into rules; add OO amplitude filter toggle default off.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-08-07 17:58:50 +08:00
parent 0daac05ef5
commit ab612df818
10 changed files with 201 additions and 118 deletions
+3 -2
View File
@@ -144,12 +144,13 @@ def build_oo_pick_core(
skip_expiry_ymds: set[str] | None = None,
now: datetime | None = None,
max_dev_pct: float = 1.0,
amplitude_filter_enabled: bool = True,
) -> OoPickCore | None:
"""完整期期选约:振幅门 + 虚值双腿(贴高低≤max_dev% + 杠杆。"""
"""完整期期选约:振幅门(可关)+ 虚值双腿(贴高低≤max_dev% + 杠杆。"""
amp = amplitude or fetch_amplitude_hl_for_runtime(amplitude_hours)
if amp is None:
return None
if float(amp.range_pct) > float(amplitude_pct) + 1e-12:
if amplitude_filter_enabled and float(amp.range_pct) > float(amplitude_pct) + 1e-12:
return None
if spot <= 0:
spot = float(amp.mid)