Move settings hints into rules; add OO amplitude filter toggle default off.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -175,3 +175,18 @@ def test_amplitude_max_gate() -> None:
|
||||
assert ok is not None
|
||||
assert ok.call.strike == 2025.0
|
||||
assert ok.put.strike == 1975.0
|
||||
# 过滤关闭:振幅 3% 超过 1.5% 上限也可过
|
||||
ok_off = build_oo_pick_core(
|
||||
contracts=contracts,
|
||||
spot=2000,
|
||||
call_ask=5,
|
||||
put_ask=5,
|
||||
min_hours=1,
|
||||
min_leverage=1,
|
||||
amplitude_hours=12,
|
||||
amplitude_pct=1.5,
|
||||
amplitude=amp,
|
||||
max_dev_pct=1.0,
|
||||
amplitude_filter_enabled=False,
|
||||
)
|
||||
assert ok_off is not None
|
||||
|
||||
Reference in New Issue
Block a user