init
This commit is contained in:
@@ -417,7 +417,7 @@ class HTS_etf(HTS):
|
||||
THIS_TIME = datetime.now()
|
||||
|
||||
#LAST_DATA = self.getLastData(stock_code, today)
|
||||
isFirst = True
|
||||
isFirst = 0
|
||||
while datetime.strptime(today + " 060000", '%Y%m%d %H%M%S') < THIS_TIME < datetime.strptime(today + " 153100",'%Y%m%d %H%M%S'):
|
||||
|
||||
if datetime.strptime(today + " 090000", '%Y%m%d %H%M%S') < THIS_TIME < datetime.strptime(today + " 151500", '%Y%m%d %H%M%S'):
|
||||
@@ -426,9 +426,9 @@ class HTS_etf(HTS):
|
||||
stock_code = stock['stock_code']
|
||||
stock_name = stock['stock_name']
|
||||
|
||||
if isFirst:
|
||||
self.bot.sendMsg("START... {} ({}) SLOW_K: {}".format(stock_code, stock_name, MAX_PRICE))
|
||||
isFirst = False
|
||||
if isFirst < 4:
|
||||
self.bot.sendMsg("START... {} ({}) MAX_PRICE: {}".format(stock_code, stock_name, MAX_PRICE))
|
||||
isFirst += 1
|
||||
|
||||
# 매도를 체크한다.
|
||||
check = self.sellStocks(stock_code, stock_name)
|
||||
|
||||
Reference in New Issue
Block a user