From 8059576b5191fea06d4508ae7e7588b35f4770da Mon Sep 17 00:00:00 2001 From: dsyoon Date: Sat, 25 Sep 2021 19:33:10 +0900 Subject: [PATCH] init --- hts/HTS.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/hts/HTS.py b/hts/HTS.py index bbc6098..0c85f17 100644 --- a/hts/HTS.py +++ b/hts/HTS.py @@ -561,7 +561,6 @@ class HTS: def checkTransaction(self, data, lower): low = data["Low"] close = data["Close"] - vol = data["Volume"] # 살 시점인지 체크 # 볼린저밴드 하단에 연속으로 같은 가격이 왔을 때, @@ -572,10 +571,8 @@ class HTS: for j in range(i-3, i): if (low[j] < lower[j]) and (low[i] < lower[i] and low[j] == low[i]): #buy_line[i] = low[i] - # 이전보다 거래량이 높아야 산다. - if vol[i-1] < vol[i]: - check = True - break + check = True + break if check and i < len(lower) - 1: buy_line[i+1] = low[i] + 5 check = False