- Renamed config variable to accurately reflect behavior (locks profit, not breakeven) - Updated log messages to say 'lock +X% profit' instead of misleading 'breakeven' - Maintains backwards compatibility (accepts old BREAKEVEN_TRIGGER_PERCENT env var) - Updated .env with new variable name and explanatory comment Why: Config was named 'breakeven' but actually locks profit at entry ± X% For SHORT at $141.51 with 0.3% lock: SL moves to $141.08 (not breakeven $141.51) This protects remaining runner position after TP1 by allowing small profit giveback Files changed: - config/trading.ts: Interface + default + env parsing - lib/trading/position-manager.ts: Usage + log message - .env: Variable rename with migration comment
45 KiB
45 KiB