This commit is contained in:
dosangyoon
2022-08-09 01:04:12 +09:00
parent ea5706457a
commit f9627376d8
2 changed files with 32 additions and 29 deletions

View File

@@ -200,6 +200,9 @@ class HTS_122630 (HTS):
if __name__ == "__main__":
week = datetime.today().weekday()
if week in (0, 1, 2, 3, 4):
today = datetime.today()
PROJECT_HOME = os.getcwd()

View File

@@ -96,7 +96,6 @@ class HTS_252670 (HTS):
# 10초마다 체크하여 체결된 내역이 있으면 60원 높게 매도를 주문한다.
self.getDefaultSell(THIS_TIME, self.stock_code)
#if THIS_TIME.strftime('%Y%m%d %H%M%S') in timecheck and not timecheck[THIS_TIME.strftime('%Y%m%d %H%M%S')]:
if THIS_TIME.strftime('%S') == "03":
# 매분 3초마다 실행한다.
@@ -162,8 +161,6 @@ class HTS_252670 (HTS):
data["fast_k"][data_size - 2], data["slow_k"][data_size - 2], data["slow_d"][data_size - 1],
data["rsi"][data_size - 1], data["rsis"][data_size - 1]))
timecheck[THIS_TIME] = True
elif datetime.strptime(today + " 151530", '%Y%m%d %H%M%S') < THIS_TIME < datetime.strptime(today + " 151600", '%Y%m%d %H%M%S'):
# 3시 15분 30초부터 3시 16분 사이는 잔량을 매도한다.
@@ -205,6 +202,9 @@ class HTS_252670 (HTS):
if __name__ == "__main__":
week = datetime.today().weekday()
if week in (0, 1, 2, 3, 4):
today = datetime.today()
PROJECT_HOME = os.getcwd()