This commit is contained in:
dsyoon
2023-02-06 12:41:28 +09:00
parent 3b6f54fd3a
commit 4475ba4119

View File

@@ -112,6 +112,9 @@ class BuySellChecker:
def getBuyPriceAndWeight(self, data, data_5, data_30, i):
buy, weight = -1, -1
if len(data_5['slow_k']) <= i:
return buy, weight
if data_5['slow_k'][i] < 20:
if data_5['slow_k'][i - 1] < data_5['slow_d'][i - 1] and data_5['slow_d'][i] < data_5['slow_k'][i]:
buy = data['low'][i]