This commit is contained in:
dsyoon
2023-01-26 10:41:26 +09:00
parent 72f04020d7
commit 372fc6f4ec

View File

@@ -120,7 +120,8 @@ class HTS_DAILY (HTS):
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']) - 1:]) > 1000 and not self.orderChecker.exist(stock_code):
if len(data.index) > 10 and max(bsLine['buy'][len(bsLine['buy']) - 1:]) > 1000:
if not self.orderChecker.exist(stock_code):
last_index = len(bsLine['buy'])-1
if bsLine['buy'][last_index] > 0:
bs_buy_price = bsLine['buy'][last_index]