strategy: align model exit signal as assist-only trigger (#369)
This commit is contained in:
@@ -40,7 +40,8 @@ def evaluate_exit_first(inp: StateTransitionInput) -> bool:
|
||||
|
||||
EXITED must be evaluated before any promotion.
|
||||
"""
|
||||
return inp.hard_stop_hit or inp.trailing_stop_hit or inp.model_exit_signal or inp.be_lock_threat
|
||||
# model_exit_signal is assist-only and must not trigger EXIT directly.
|
||||
return inp.hard_stop_hit or inp.trailing_stop_hit or inp.be_lock_threat
|
||||
|
||||
|
||||
def promote_state(current: PositionState, inp: StateTransitionInput) -> PositionState:
|
||||
|
||||
Reference in New Issue
Block a user