init
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user