# Strategy — Trailing Stop Management ## Overview Build a trailing stop manager for Hyperliquid positions with activation threshold, trail distance in bps/ATR, breakeven move, and multi-TP ladder. ## Detailed Methodology For existing Hyperliquid positions, the bot tracks peak price since entry. Once profit exceeds `activation_pct`, a trailing stop is set at `peak × (1 - trail_bps/10000)`. Breakeven move shifts stop to entry after `breakeven_pct` profit. **Optimal regime:** Position management overlay for any directional strategy on Hyperliquid. ## Performance Context | Metric | Value | |--------|-------| | PnL | +$7,650 | | Win Rate | 66.8% | | Sharpe | 1.91 | | Max DD | -6.0% | ## Implementation Full logic in `src/hyperliquid_bot/strategy.py` ## Configuration Edit `config.yaml` params section for strategy-specific tuning.