main_server.py가 중복 실행되면서 좀비 프로세스가 수행되는 오류 해결, process_tracker.py가 감시하면서 할당되지 않은 pid가 존재하면 좀비프로세스로 판단하여 kill

This commit is contained in:
2026-02-11 07:48:06 +09:00
parent 7f2f575ec8
commit 4fd0aa91bc
8 changed files with 689 additions and 371 deletions

View File

@@ -187,4 +187,26 @@ class TechnicalAnalyzer:
else:
volatility = 0.0
return round(total_score, 4), round(rsi, 2), round(volatility, 2), round(volume_ratio, 1)
# [신규] 이동평균선 분석 (20일, 114일)
ma114 = TechnicalAnalyzer.calculate_ma(prices_history, 114)
ma_trend = "Unknown"
if ma20 > ma114:
ma_trend = "Bullish (Golden Alignment)" # 정배열
else:
ma_trend = "Bearish (Dead Alignment)" # 역배열
price_pos = "Unknown"
if current_price > ma20:
price_pos = "Above MA20"
else:
price_pos = "Below MA20"
ma_info = {
"ma20": ma20,
"ma114": ma114,
"trend": ma_trend,
"position": price_pos
}
return round(total_score, 4), round(rsi, 2), round(volatility, 2), round(volume_ratio, 1), ma_info