init
This commit is contained in:
@@ -177,37 +177,31 @@ class Analyzer:
|
||||
# 정배열 체크
|
||||
temp_status = self.common.check_RightArrange(STOCK, i)
|
||||
if temp_status != "":
|
||||
#if STOCHASTIC[i]['slow_k'] < 40:
|
||||
status += temp_status
|
||||
|
||||
# 20일선 돌파
|
||||
temp_status = self.common.check_Dolpa_Jiji(STOCK, i, '20')
|
||||
if temp_status != "":
|
||||
#if STOCHASTIC[i]['slow_k'] < 40:
|
||||
status += temp_status
|
||||
|
||||
# 60일선 돌파
|
||||
temp_status = self.common.check_Dolpa_Jiji(STOCK, i, '60')
|
||||
if temp_status != "":
|
||||
#if STOCHASTIC[i]['slow_k'] < 40:
|
||||
status += temp_status
|
||||
|
||||
# 120일선 돌파
|
||||
temp_status = self.common.check_Dolpa_Jiji(STOCK, i, '120')
|
||||
if temp_status != "":
|
||||
#if STOCHASTIC[i]['slow_k'] < 40:
|
||||
status += temp_status
|
||||
|
||||
# 240일선 돌파
|
||||
temp_status = self.common.check_Dolpa_Jiji(STOCK, i, '240')
|
||||
if temp_status != "":
|
||||
#if STOCHASTIC[i]['slow_k'] < 40:
|
||||
status += temp_status
|
||||
|
||||
# 20일선 지지 매수가 추천
|
||||
temp_status = self.common.check_Dolpa_Jiji_20(STOCK, i)
|
||||
if temp_status != "":
|
||||
# if STOCHASTIC[i]['slow_k'] < 40:
|
||||
status += temp_status
|
||||
|
||||
# 음봉인데 어제보다 종가가 더 높은 경우
|
||||
@@ -220,13 +214,11 @@ class Analyzer:
|
||||
# 단타 #1
|
||||
temp_status = self.common.check_Danta1(STOCK, i)
|
||||
if temp_status != "":
|
||||
# if STOCHASTIC[i]['slow_k'] < 40:
|
||||
status += temp_status
|
||||
|
||||
# 단타 #2
|
||||
temp_status = self.common.check_Danta2(STOCK, i)
|
||||
if temp_status != "":
|
||||
# if STOCHASTIC[i]['slow_k'] < 40:
|
||||
status += temp_status
|
||||
|
||||
all_upper_cross_status = self.common.checkAllUpperCross(STOCK, i)
|
||||
@@ -436,7 +428,7 @@ class Analyzer:
|
||||
if item_code == "108230":
|
||||
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)
|
||||
|
||||
@@ -520,14 +520,14 @@ class Common:
|
||||
return ""
|
||||
|
||||
def checkPotentialEnergy(self, stock, i):
|
||||
# 120일 중 가장 찾은 금액과 가장 높았던 금액 중 현재가의 위치 계산
|
||||
# 350일 중 가장 찾은 금액과 가장 높았던 금액 중 현재가의 위치 계산
|
||||
|
||||
top = stock[i]['close']
|
||||
bottom = stock[i]['close']
|
||||
price = stock[i]['close']
|
||||
|
||||
if len(stock) > 120:
|
||||
for i in range(2, 120):
|
||||
if len(stock) > 350:
|
||||
for i in range(2, 350):
|
||||
if top < stock[-i]["close"]:
|
||||
top = stock[-i]["close"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user