This commit is contained in:
dsyoon
2022-08-12 10:46:48 +09:00
parent 56b4b9ccfb
commit 56bca0bee5

View File

@@ -588,12 +588,13 @@ class BuySellChecker:
break
if data["avg3"][i] > p_avg3+3 and max_avg3 < data["avg3"][i]:
# if data["avg6"][i-10] > data["avg6"][i]:
if i == 382 or i == 383:
if data["close"][i] != data["high"][i]:
return -1, -1
buy = data["low"][i]
weight = 1
return buy, weight
if data['slow_k'][i] < 50:
if i == 382 or i == 383:
if data["close"][i] != data["high"][i]:
return -1, -1
buy = data["low"][i]
weight = 1
return buy, weight
"""
# 3분선이 10분 이상 7분선 아래에 있다가 7분선 위로 올라옴
if i >= 381 + 10: