This commit is contained in:
dosangyoon
2021-08-15 23:42:02 +09:00
parent 5adf586675
commit 668aed001a
2 changed files with 81 additions and 45 deletions

View File

@@ -519,27 +519,6 @@ class Common:
return "arrange_"
return ""
def checkPotentialEnergy(self, stock, i):
# 350일 중 가장 찾은 금액과 가장 높았던 금액 중 현재가의 위치 계산
top = stock[i]['close']
bottom = stock[i]['close']
price = stock[i]['close']
if len(stock) > 350:
for i in range(2, 350):
if top < stock[-i]["close"]:
top = stock[-i]["close"]
if stock[-i]["close"] < bottom:
bottom = stock[-i]["close"]
if top - bottom > 0:
energy = (price - bottom) / (top - bottom)
if energy < 0.2:
return "p(" + str(round(energy, 2)) + ")_"
return ""
def checkHigherUmbong(self, stock, i):
# 음봉인데 어제보다 종가가 더 높은 경우
# 이 경우 정배열 상태인지도 함께 체크를 한다.