From 459f8443ba925dee269ab52c40020f850b814e28 Mon Sep 17 00:00:00 2001 From: dsyoon Date: Fri, 8 Jul 2022 12:04:55 +0900 Subject: [PATCH] init --- hts/BuySellChecker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hts/BuySellChecker.py b/hts/BuySellChecker.py index ab8562a..2338761 100644 --- a/hts/BuySellChecker.py +++ b/hts/BuySellChecker.py @@ -299,7 +299,7 @@ class BuySellChecker: buy, weight, sell = -1, -1, -1 # 381: 어제 날짜 데이터 개수 - if i >= 381 + 5: + if i >= 381: if data["macdo"][i] < 0 and data["macd"][i] < -5: if data["macd"][i-3] > data["macd"][i-2] and data["macd"][i-2] > data["macd"][i-1] and data["macd"][i-1] < data["macd"][i]: buy = data["close"][i]