init
This commit is contained in:
@@ -79,7 +79,6 @@ class HTS_DAILY (HTS):
|
||||
THIS_TIME = datetime.now()
|
||||
|
||||
valid_company = self.valid_company()
|
||||
self.orderChecker.read(today)
|
||||
|
||||
while datetime.strptime(today + " 070000", '%Y%m%d %H%M%S') < THIS_TIME < datetime.strptime(today + " 153100", '%Y%m%d %H%M%S'):
|
||||
|
||||
@@ -121,7 +120,7 @@ class HTS_DAILY (HTS):
|
||||
|
||||
# 다음 조건이면 매수한다.
|
||||
if len(data.index) > 10 and max(bsLine['buy'][len(bsLine['buy']) - 1:]) > 1000:
|
||||
if not self.orderChecker.exist(stock_code):
|
||||
if not self.orderChecker.exist(today, stock_code):
|
||||
last_index = len(bsLine['buy'])-1
|
||||
if bsLine['buy'][last_index] > 0:
|
||||
bs_buy_price = bsLine['buy'][last_index]
|
||||
|
||||
Reference in New Issue
Block a user