This commit is contained in:
dosang.yoon
2022-07-08 12:02:02 +09:00
parent 0e6fbefc07
commit f889388459
3 changed files with 4 additions and 4 deletions

View File

@@ -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):

View File

@@ -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):

View File

@@ -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))