fix: enforce take_profit_pct in HOLD evaluation loop (#163) #166
Reference in New Issue
Block a user
Delete Branch "feature/issue-163-take-profit-enforcement"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
main.pyHOLD 평가 블록에take_profit_pct익절 조건 체크 추가take_profit_pct가 실제 거래 로직에서 완전히 무시되던 버그 수정stop_loss와 상호 배타적으로 동작 (stop_loss 먼저 체크)변경 내용
Test plan
test_hold_overridden_to_sell_when_take_profit_triggered— +6% 수익 시 SELL 전환test_hold_not_overridden_when_between_stop_loss_and_take_profit— +1% 수익 시 HOLD 유지test_hold_overridden_to_sell_when_stop_loss_triggered— 기존 stop_loss 동작 유지 확인Closes #163
🤖 Generated with Claude Code