init
This commit is contained in:
@@ -540,6 +540,19 @@ class Common:
|
||||
return "p(" + str(round(energy, 2)) + ")_"
|
||||
return ""
|
||||
|
||||
def checkHigherUmbong(self, stock, i):
|
||||
# 음봉인데 어제보다 종가가 더 높은 경우
|
||||
# 이 경우 정배열 상태인지도 함께 체크를 한다.
|
||||
|
||||
if len(stock) > 3:
|
||||
# 어제는 거래량이 터진 양봉이다.
|
||||
if stock[i-1]['open'] < stock[i-1]['close'] and 5*stock[i-2]['volume'] < stock[i-1]['volume']:
|
||||
# 오늘은 음봉인데, 오늘 종가는 어제 시가보다는 높다
|
||||
if stock[i]['close'] < stock[i]['open'] and stock[i-1]['open'] < stock[i]['close']:
|
||||
return "HIGHERUMBONG_"
|
||||
|
||||
return ""
|
||||
|
||||
|
||||
def check_W1Rise(self, stock, i, limit):
|
||||
if len(stock) > 5:
|
||||
|
||||
Reference in New Issue
Block a user