From f889388459f4bb96710ba3deb60625688ab7b2df Mon Sep 17 00:00:00 2001 From: "dosang.yoon" Date: Fri, 8 Jul 2022 12:02:02 +0900 Subject: [PATCH] init --- hts/HTS_122630.py | 2 +- hts/HTS_252670.py | 2 +- hts/Simulation.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hts/HTS_122630.py b/hts/HTS_122630.py index e41d584..cb8189c 100644 --- a/hts/HTS_122630.py +++ b/hts/HTS_122630.py @@ -33,7 +33,7 @@ class HTS_122630 (HTS): bsLine['sell'] = [-1 for i in range(size)] last_index = size - 1 - buy, weight, sell = self.buySellChecker.getPriceAndWeight1(data, last_index) + buy, weight, sell = self.buySellChecker.getPriceAndWeight3(data, last_index) return buy, weight, sell def getSellingPrice(self, final_price): diff --git a/hts/HTS_252670.py b/hts/HTS_252670.py index bfba09b..49df34f 100644 --- a/hts/HTS_252670.py +++ b/hts/HTS_252670.py @@ -33,7 +33,7 @@ class HTS_252670 (HTS): bsLine['sell'] = [-1 for i in range(size)] last_index = size - 1 - buy, weight, sell = self.buySellChecker.getPriceAndWeight1(data, last_index) + buy, weight, sell = self.buySellChecker.getPriceAndWeight3(data, last_index) return buy, weight, sell def getSellingPrice(self, final_price): diff --git a/hts/Simulation.py b/hts/Simulation.py index 421aabe..ae2fe7c 100644 --- a/hts/Simulation.py +++ b/hts/Simulation.py @@ -35,8 +35,8 @@ class Simulation: start_time = datetime.strptime(given_day + " 090000", '%Y%m%d %H%M%S') temp = datetime.strptime(str(days) + " " + str(time).zfill(4)+"00", '%Y%m%d %H%M%S') - if temp < start_time: - continue + #if temp < start_time: + # continue result["time"].append(temp) result["open"].append(int(open_v))