From c60efbb1b037b0ac03a9de0dd2a1fa0bca471b3a Mon Sep 17 00:00:00 2001 From: dsyoon Date: Wed, 25 May 2022 14:40:01 +0900 Subject: [PATCH] init --- hts/BuySellChecker.py | 6 +++--- hts/HTS_252670.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hts/BuySellChecker.py b/hts/BuySellChecker.py index cbdbc2f..32056ba 100644 --- a/hts/BuySellChecker.py +++ b/hts/BuySellChecker.py @@ -211,9 +211,9 @@ class BuySellChecker: if data["slow_k"][i-1] < data["slow_d"][i-1] and data["slow_d"][i] < data["slow_k"][i] and data["slow_k"][i-1] < data["slow_k"][i]: buy = data["low"][i] else: - if data["low"][i] < data["lower"][i]: - if data["slow_k"][i-1] < 50 and data["slow_k"][i] < 55: - if data["slow_k"][i-1] < data["slow_d"][i-1] and data["slow_k"][i] > data["slow_d"][i] and data["slow_k"][i-1] <= data["slow_k"][i]: + if data["low"][i] < data["lower"][i] + 5: + if data["slow_k"][i-1] < 30 and data["slow_k"][i] < 30: + if data["slow_k"][i-1] < data["slow_k"][i]: buy = data["low"][i] ############################# diff --git a/hts/HTS_252670.py b/hts/HTS_252670.py index a703d64..9216358 100644 --- a/hts/HTS_252670.py +++ b/hts/HTS_252670.py @@ -549,7 +549,7 @@ class HTS_252670: def buyRealTime(self, GIVEN_DAY): orderChecker = OrderChecker(self.stock_code) - BASE_COUNT = 100 + BASE_COUNT = 200 timecheckList = pd.read_csv("timecheck.csv").values.tolist() timecheck = {GIVEN_DAY + " " + str(second).zfill(6):False for second, check in timecheckList}