feat(stock): decide_action 매트릭스 (sell>trim>add>hold)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-31 21:48:52 +09:00
parent b13c088739
commit fba6dbf1fd

View File

@@ -117,7 +117,11 @@ ADD_SCORE = 70.0 # 이 이상이면 추가매수 후보
def decide_action(tech_score: float, exit_flags: dict, pnl: float | None) -> tuple[str, str]:
"""우선순위: sell > trim > add > hold. 근거 텍스트 동봉."""
"""액션 결정 매트릭스: sell > trim > add > hold (우선순위 순).
Returns:
(action, reasons_text) action ∈ {"sell","trim","add","hold"}
"""
reasons = []
# 청산 (최우선)
if exit_flags.get("stop_loss"):