This commit is contained in:
dsyoon
2023-05-29 18:58:24 +09:00
parent 3591854f40
commit 1a243a6efb

View File

@@ -598,20 +598,15 @@ class Common:
def check_under_EV_Low(self, stock):
if stock['envelope_lower'][0] is not None and stock['envelope_lower'][1] is not None:
# ev 하단에 부딪힘
if stock['close'][1] < stock['avg5'][1] and stock['avg5'][0] < stock['close'][0]:
for c in range(1, 4):
if stock['close'][c] < stock['envelope_lower'][c]:
return True
if stock['close'][0] < stock['envelope_lower'][0]:
return True
return False
def check_under_BB_Low(self, stock):
if stock['bolingerband_lower'][0] is not None and stock['bolingerband_lower'][1] is not None:
# bb 하단에 부딪힘
if stock['close'][1] < stock['avg5'][1] and stock['avg5'][0] < stock['close'][0]:
check = False
for c in range(1, 4):
if stock['close'][c] < stock['bolingerband_lower'][c]:
return True
if stock['close'][0] < stock['bolingerband_lower'][0]:
return True
return False
# OBV (최저점에서 누적 거래량) 체크