From 1a243a6efbec9a3313302f6193cbbd65aa94cc20 Mon Sep 17 00:00:00 2001 From: dsyoon Date: Mon, 29 May 2023 18:58:24 +0900 Subject: [PATCH] init --- stock/analysis/Common.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/stock/analysis/Common.py b/stock/analysis/Common.py index e885894..958d4c4 100644 --- a/stock/analysis/Common.py +++ b/stock/analysis/Common.py @@ -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 (최저점에서 누적 거래량) 체크