This commit is contained in:
dosangyoon
2022-02-18 20:05:31 +09:00
parent 3f241cc121
commit 4d014e1565
2 changed files with 2 additions and 2 deletions

View File

@@ -693,7 +693,7 @@ class AnalyzerSqlite:
type = "-3_후행스팬_캔들_아래로_내려옴"
self.writeFile(type, CODE, NAME, stock, state)
if self.checkVolume(volume[1], close[1], volume[0], close[0]):
if len(close) > 2 and self.checkVolume(volume[1], close[1], volume[0], close[0]):
type = "1_거래량_상승"
self.writeFile(type, CODE, NAME, stock, state)

View File

@@ -313,7 +313,7 @@ class Common:
if len(stock['close']) > 60:
# 스토케스틱이 15 이하인 경우
# 어제보다 slow_k가 상승했고, 오늘 slow_k가 slow_d 위에 있는 경우,
if stock['stochastic_slow_k'][0] < 15:
if stock['stochastic_slow_k'][0] is not None and stock['stochastic_slow_k'][0] < 15:
if stock['stochastic_slow_k'][1] < stock['stochastic_slow_k'][0] and stock['stochastic_slow_d'][0] < stock['stochastic_slow_k'][0]:
return "STOCHASTIC_"
return ""