This commit is contained in:
dsyoon
2021-04-27 20:53:29 +09:00
parent 494145a58c
commit 332b20834b
5 changed files with 1086 additions and 28 deletions

View File

@@ -199,12 +199,6 @@ class Analyzer:
#if STOCHASTIC[i]['slow_k'] < 40:
status += temp_status
# 270일선 돌파
temp_status = self.common.check_highest_270(STOCK, i)
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 != "":
@@ -256,9 +250,100 @@ class Analyzer:
status += stochastic_status
# YANGBONG
if self.common.checkLongYangBongAfterUmBong(STOCK, i):
longYangBongAfterUmBong_status = self.common.checkLongYangBongAfterUmBong(STOCK, i)
# 어제 음봉 이후 장대양봉이었다면,
status += 'YANGBONG_'
if longYangBongAfterUmBong_status != "":
status += longYangBongAfterUmBong_status
# Doji
doji_status = self.common.checkDoji(STOCK, i)
# 하락 추세에서 도지가 나오면 매수
if doji_status != "":
status += doji_status
"""
# Gravestone
gravestone_status = self.common.checkGravestone(STOCK, i)
# 상승 추세에서 그레이브스톤이 나오면 매도
if gravestone_status != "":
status += gravestone_status
"""
# Dragonfly
dragonfly_status = self.common.checkDragonfly(STOCK, i)
# 하락 추세에서 드레곤플라이가 나오면 매수
if dragonfly_status != "":
status += dragonfly_status
# Hammer
hammer_status = self.common.checkHammer(STOCK, i)
# 하락 추세에서 해머가 나오면 매수
if hammer_status != "":
status += hammer_status
"""
# Hangingman
hangingman_status = self.common.checkHangingman(STOCK, i)
# 상승 추세에서 행잉맨이 나오면 매도
if hangingman_status != "":
status += hangingman_status
"""
# 상승장악형 (Engulfing) - 다음 날도 양봉이라면 매수
engulfing_status = self.common.checkEngulfingHigh(STOCK, i)
# 하락 추세에서 상승장악형이 나오면 매수
if engulfing_status != "":
status += engulfing_status
"""
# 하락장악형 (Engulfing)
engulfing_status = self.common.checkEngulfingLow(STOCK, i)
# 상승 추세에서 하락장악형이 나오면 매도
if engulfing_status != "":
status += engulfing_status
"""
# 상승 포아형 (Harami)
harami_status = self.common.checkHaramiHigh(STOCK, i)
# 하락 추세에서 상승포아형이 나오면 매수
if harami_status != "":
status += harami_status
"""
# 하락 포아형 (Harami)
harami_status = self.common.checkHaramiLow(STOCK, i)
# 상승 추세에서 하락포아형이 나오면 매도
if harami_status != "":
status += harami_status
"""
# 관통형 (piercing)
piercing_status = self.common.checkPiercing(STOCK, i)
# 하락 추세에서 관통형이 나오면 매수
if piercing_status != "":
status += piercing_status
"""
# 흑운형 (Dark-cloud)
darkcloud_status = self.common.checkDarkCloud(STOCK, i)
# 상승 추세에서 흑운형이 나오면 매도
if darkcloud_status != "":
status += darkcloud_status
"""
# 샛별 (Morning start)
morningstar_status = self.common.checkMorningstar(STOCK, i)
# 하락 추세에서 샛별형이 나오면 매수
if morningstar_status != "":
status += morningstar_status
"""
# 저녁별 (Evening start)
eveningstar_status = self.common.checkEveningstar(STOCK, i)
# 상승 추세에서 저녁별형이 나오면 매도
if eveningstar_status != "":
status += eveningstar_status
"""
return status, buy_price
@@ -279,6 +364,13 @@ class Analyzer:
item_name = result[1]
print("#html", rowid, item_name)
if item_code != "050960":
rowid += 1
cursor.execute('SELECT CODE, NAME, PRICE, STOCHASTIC FROM ' + self.tableName + ' WHERE rowid=?', (rowid,))
result = cursor.fetchone()
continue
# 부실 기업은 매수하지 않고 그냥 넘긴다.
# kospi 지수와 kosdak 지수도 그냥 넘긴다.
if ((item_code in self.fnguide and not self.fnguide[item_code]) or (item_code == "KOSPI" or item_code == "KOSDAK") or result[3] == ''):