This commit is contained in:
lunaticbum 2026-04-08 16:12:02 +09:00
parent 5a504ffa31
commit c505b79953

View File

@ -486,22 +486,33 @@ object AutoTradingManager {
// 🟢 [추매 타점] 볼린저 하단 터치(1.05배 이내) + RSI 과매도(35 이하) 구간
if (lowerBand > 0 && currentPrice <= lowerBand * 1.05 && rsiDaily < 35.0) {
advice = "📉 [추매 권장] 볼린저 밴드 하단 터치 및 RSI 과매도(${"%.1f".format(rsiDaily)}). 기술적 반등 확률이 매우 높은 통계적 바닥권입니다. (물타기 고려)"
TradingLogStore.addAnalyzer(
"보유주식[${holding.name}]",
holding.code,
"수익률($profit%) -> $advice", true
)
}
// 🔴 [손절 타점] 추세가 완전히 깨졌는데, 바닥(볼린저 하단)까지 한참 남았을 때
else if (isTrendBroken && currentPrice > lowerBand * 1.1) {
advice = "🚨 [손절 경고] 20일 추세가 완전히 무너졌으며, 아직 바닥(하단 밴드)도 확인되지 않았습니다. 추가 하락(지하실) 위험이 크므로 리스크 관리(손절)가 필요합니다."
TradingLogStore.addNotice(
"보유주식[${holding.name}]",
holding.code,
"수익률 심각($profit%) -> $advice",
)
}
// 🟡 [관망] 어정쩡하게 물려있는 상태
else {
advice = "⏳ [관망 유지] 뚜렷한 반등 시그널(바닥)이나 치명적 투매 시그널이 없습니다. 조금 더 지켜봅니다."
TradingLogStore.addAnalyzer(
"보유주식[${holding.name}]",
holding.code,
"수익률($profit%) -> $advice", false
)
}
// 분석 결과를 UI 로그에 띄워 대표님이 확인할 수 있게 함
TradingLogStore.addNotice(
"보유주식[${holding.name}]",
holding.code,
"수익률 심각($profit%) -> $advice",
)
}
} else {
// -5% 이내의 자잘한 손실은 별도 분석 없이 조용히 넘기거나 약식 로그만 남김