strategy: align model exit signal as assist-only trigger (#369)
All checks were successful
Gitea CI / test (push) Successful in 32s
Gitea CI / test (pull_request) Successful in 32s

This commit is contained in:
agentson
2026-03-02 09:25:03 +09:00
parent f6e4cc7ea9
commit 2332ba868f
7 changed files with 37 additions and 9 deletions

View File

@@ -22,7 +22,7 @@ def test_take_profit_exit_for_backward_compatibility() -> None:
assert out.reason == "arm_take_profit"
def test_model_assist_exit_signal() -> None:
def test_model_assist_signal_does_not_exit_directly() -> None:
out = evaluate_exit(
current_state=PositionState.ARMED,
config=ExitRuleConfig(model_prob_threshold=0.62, arm_pct=10.0),
@@ -34,5 +34,5 @@ def test_model_assist_exit_signal() -> None:
liquidity_weak=True,
),
)
assert out.should_exit is True
assert out.reason == "model_liquidity_exit"
assert out.should_exit is False
assert out.reason == "hold"