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

@@ -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 ""