This commit is contained in:
dsyoon
2023-01-17 12:45:41 +09:00
parent 1bf67e1919
commit 65dd70e4ef
2 changed files with 8 additions and 8 deletions

View File

@@ -30,7 +30,7 @@ class HTS_DAILY (HTS):
self.dailyStatus = DailyStatus(RESOURCE_PATH)
self.buySellChecker = BuySellChecker()
self.analyzed_day = 60
self.analyzed_day = 120
self.MAX_BUY_PRICE = 100000
return
@@ -94,7 +94,7 @@ class HTS_DAILY (HTS):
# 분석일 데이터만 활용한다 (이전 데이터는 제거)
data.drop(data.index[:self.analyzed_day], inplace=True)
bsLine, data = self.buySellChecker.checkTransactionWithEnvelope(data, stock_code, isRealTime=False)
bsLine, data = self.buySellChecker.checkTransactionWithEnvelope(data, stock_code, self.analyzed_day, isRealTime=False)
if len(data.index) > 10 and max(bsLine['buy'][len(bsLine['buy']) - 2:]) > 0:
last_index = len(bsLine['buy'])-1