From 2bb5152e9903c0b3c474fe7b2c7291e61bd79220 Mon Sep 17 00:00:00 2001 From: dsyoon Date: Tue, 6 Feb 2024 03:03:24 +0900 Subject: [PATCH] init --- stock/analysis/Common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stock/analysis/Common.py b/stock/analysis/Common.py index 598c1ae..816c759 100644 --- a/stock/analysis/Common.py +++ b/stock/analysis/Common.py @@ -629,11 +629,11 @@ class Common: if stock['upper'][0] < stock['high'][0]: # 볼린저 밴드 width 로 매수 시점 for i in range(10): - if stock['width'][i+1] < 20 and 20 < stock['width'][i]: + if stock['width'][i + 1] < 20 < stock['width'][i]: check = True break # 볼린저 밴드 %B와 MFI로 매수 시점 - if 80 < stock['pb'][i+1] and 80 < stock['mfi'][i]: + if 80 < stock['pb'][0] and 80 < stock['mfi'][0]: check = True return check