This commit is contained in:
dsyoon
2021-07-28 03:40:10 +09:00
parent 04b47cffc3
commit d9e8c0e8a9
2 changed files with 4 additions and 12 deletions

View File

@@ -177,37 +177,31 @@ class Analyzer:
# 정배열 체크 # 정배열 체크
temp_status = self.common.check_RightArrange(STOCK, i) temp_status = self.common.check_RightArrange(STOCK, i)
if temp_status != "": if temp_status != "":
#if STOCHASTIC[i]['slow_k'] < 40:
status += temp_status status += temp_status
# 20일선 돌파 # 20일선 돌파
temp_status = self.common.check_Dolpa_Jiji(STOCK, i, '20') temp_status = self.common.check_Dolpa_Jiji(STOCK, i, '20')
if temp_status != "": if temp_status != "":
#if STOCHASTIC[i]['slow_k'] < 40:
status += temp_status status += temp_status
# 60일선 돌파 # 60일선 돌파
temp_status = self.common.check_Dolpa_Jiji(STOCK, i, '60') temp_status = self.common.check_Dolpa_Jiji(STOCK, i, '60')
if temp_status != "": if temp_status != "":
#if STOCHASTIC[i]['slow_k'] < 40:
status += temp_status status += temp_status
# 120일선 돌파 # 120일선 돌파
temp_status = self.common.check_Dolpa_Jiji(STOCK, i, '120') temp_status = self.common.check_Dolpa_Jiji(STOCK, i, '120')
if temp_status != "": if temp_status != "":
#if STOCHASTIC[i]['slow_k'] < 40:
status += temp_status status += temp_status
# 240일선 돌파 # 240일선 돌파
temp_status = self.common.check_Dolpa_Jiji(STOCK, i, '240') temp_status = self.common.check_Dolpa_Jiji(STOCK, i, '240')
if temp_status != "": if temp_status != "":
#if STOCHASTIC[i]['slow_k'] < 40:
status += temp_status status += temp_status
# 20일선 지지 매수가 추천 # 20일선 지지 매수가 추천
temp_status = self.common.check_Dolpa_Jiji_20(STOCK, i) temp_status = self.common.check_Dolpa_Jiji_20(STOCK, i)
if temp_status != "": if temp_status != "":
# if STOCHASTIC[i]['slow_k'] < 40:
status += temp_status status += temp_status
# 음봉인데 어제보다 종가가 더 높은 경우 # 음봉인데 어제보다 종가가 더 높은 경우
@@ -220,13 +214,11 @@ class Analyzer:
# 단타 #1 # 단타 #1
temp_status = self.common.check_Danta1(STOCK, i) temp_status = self.common.check_Danta1(STOCK, i)
if temp_status != "": if temp_status != "":
# if STOCHASTIC[i]['slow_k'] < 40:
status += temp_status status += temp_status
# 단타 #2 # 단타 #2
temp_status = self.common.check_Danta2(STOCK, i) temp_status = self.common.check_Danta2(STOCK, i)
if temp_status != "": if temp_status != "":
# if STOCHASTIC[i]['slow_k'] < 40:
status += temp_status status += temp_status
all_upper_cross_status = self.common.checkAllUpperCross(STOCK, i) all_upper_cross_status = self.common.checkAllUpperCross(STOCK, i)
@@ -436,7 +428,7 @@ class Analyzer:
if item_code == "108230": if item_code == "108230":
print (1) print (1)
if stochastic_score < 40 and bolingerband_score < 0.4: if stochastic_score < 50 and bolingerband_score < 0.4:
# 종목 상태 체크 분석 # 종목 상태 체크 분석
state, buy_price = self.analyzeFinalScore(last_index, STOCK, STOCHASTIC) state, buy_price = self.analyzeFinalScore(last_index, STOCK, STOCHASTIC)

View File

@@ -520,14 +520,14 @@ class Common:
return "" return ""
def checkPotentialEnergy(self, stock, i): def checkPotentialEnergy(self, stock, i):
# 120일 중 가장 찾은 금액과 가장 높았던 금액 중 현재가의 위치 계산 # 350일 중 가장 찾은 금액과 가장 높았던 금액 중 현재가의 위치 계산
top = stock[i]['close'] top = stock[i]['close']
bottom = stock[i]['close'] bottom = stock[i]['close']
price = stock[i]['close'] price = stock[i]['close']
if len(stock) > 120: if len(stock) > 350:
for i in range(2, 120): for i in range(2, 350):
if top < stock[-i]["close"]: if top < stock[-i]["close"]:
top = stock[-i]["close"] top = stock[-i]["close"]