Move settings hints into rules; add OO amplitude filter toggle default off.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user