init
This commit is contained in:
@@ -33,7 +33,7 @@ class HTS_122630 (HTS):
|
|||||||
bsLine['sell'] = [-1 for i in range(size)]
|
bsLine['sell'] = [-1 for i in range(size)]
|
||||||
|
|
||||||
last_index = size - 1
|
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
|
return buy, weight, sell
|
||||||
|
|
||||||
def getSellingPrice(self, final_price):
|
def getSellingPrice(self, final_price):
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ class HTS_252670 (HTS):
|
|||||||
bsLine['sell'] = [-1 for i in range(size)]
|
bsLine['sell'] = [-1 for i in range(size)]
|
||||||
|
|
||||||
last_index = size - 1
|
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
|
return buy, weight, sell
|
||||||
|
|
||||||
def getSellingPrice(self, final_price):
|
def getSellingPrice(self, final_price):
|
||||||
|
|||||||
@@ -35,8 +35,8 @@ class Simulation:
|
|||||||
start_time = datetime.strptime(given_day + " 090000", '%Y%m%d %H%M%S')
|
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')
|
temp = datetime.strptime(str(days) + " " + str(time).zfill(4)+"00", '%Y%m%d %H%M%S')
|
||||||
if temp < start_time:
|
#if temp < start_time:
|
||||||
continue
|
# continue
|
||||||
|
|
||||||
result["time"].append(temp)
|
result["time"].append(temp)
|
||||||
result["open"].append(int(open_v))
|
result["open"].append(int(open_v))
|
||||||
|
|||||||
Reference in New Issue
Block a user