This commit is contained in:
dosangyoon
2021-10-05 21:38:22 +09:00
parent e4d12343c9
commit 1dade0afbe
2 changed files with 113 additions and 50 deletions

View File

@@ -420,6 +420,13 @@ class Common:
return "STOCHASTIC#2_"
return ""
def check_Dolpa(self, stock, i, avg1, avg2):
upper_index = 0
if len(stock) > 2:
if stock[i-1]["avg"+avg1] < stock[i-1]["avg"+avg2] and stock[i]["avg"+avg1] > stock[i]["avg"+avg2]:
return avg1+"_"+avg2+"_"
return ""
def check_Dolpa_Jiji(self, stock, i, day='20'):
upper_index = 0
if len(stock) > 5: