main_server.py가 중복 실행되면서 좀비 프로세스가 수행되는 오류 해결, process_tracker.py가 감시하면서 할당되지 않은 pid가 존재하면 좀비프로세스로 판단하여 kill
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user