Acerca de
This skill provides a robust framework for managing financial risk within trading systems by implementing a standardized Drawdown Guardrails pattern. It ensures consistency across backtesting, live execution, and model training by tracking high-water marks and equity peaks rather than just initial capital. By providing sticky halt flags and threshold-based position scaling, it prevents catastrophic losses and trading whipsaws, while allowing existing positions to exit safely via stop-losses. This is an essential pattern for developers building reliable automated trading infrastructure or ML-based financial models where production stability is paramount.