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:
@@ -117,7 +117,11 @@ ADD_SCORE = 70.0 # 이 이상이면 추가매수 후보
|
|||||||
|
|
||||||
|
|
||||||
def decide_action(tech_score: float, exit_flags: dict, pnl: float | None) -> tuple[str, str]:
|
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 = []
|
reasons = []
|
||||||
# 청산 (최우선)
|
# 청산 (최우선)
|
||||||
if exit_flags.get("stop_loss"):
|
if exit_flags.get("stop_loss"):
|
||||||
|
|||||||
Reference in New Issue
Block a user