Files
foxhunt/crates
jgrusewski fa36d55384 feat(cuda): hard stop-loss via action override in confidence gate
The stop-loss now overrides the action to FlatFromLong/FlatFromShort
BEFORE the lobsim step — the position actually closes through the
normal fill pipeline. No state mismatch (unlike the previous
dones-override approach that killed training).

Uses drawdown from peak: (peak_equity - realized_pnl) / mean_abs_pnl.
When normalized drawdown exceeds ISV[RL_STOP_LOSS_THRESHOLD_INDEX=587]
(bootstrap 2.0), the action is overridden regardless of the model's
choice. Fires before all other gate logic.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-27 22:18:40 +02:00
..