Files
trading_bot_v4/package-lock.json
mindesbunister e12ff428c5 test: Add pure runner profit-based widening verification
- Created test suite demonstrating TAKE_PROFIT_2_SIZE_PERCENT=0 configuration
- Verified TP2 activates trailing stop without closing position
- Validated profit-based widening: >2% profit = 1.3× wider trail
- Real-world scenario test: 6% move captured vs 2.32% with old system
- Test shows 80% P&L improvement (1.8× better total return)
- All 5 tests passing

Configuration already active in production:
- TAKE_PROFIT_2_SIZE_PERCENT=0 (pure runner)
- Profit widening logic in position-manager.ts lines 1562-1566
- Container deployed Dec 9, 2025 17:42 with this config
2025-12-09 17:59:04 +01:00

593 KiB