init
This commit is contained in:
@@ -120,7 +120,8 @@ class HTS_DAILY (HTS):
|
|||||||
bsLine, data = self.buySellChecker.checkTransactionWithEnvelope(data, stock_code, self.analyzed_day, 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']) - 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
|
last_index = len(bsLine['buy'])-1
|
||||||
if bsLine['buy'][last_index] > 0:
|
if bsLine['buy'][last_index] > 0:
|
||||||
bs_buy_price = bsLine['buy'][last_index]
|
bs_buy_price = bsLine['buy'][last_index]
|
||||||
|
|||||||
Reference in New Issue
Block a user