This commit is contained in:
dosangyoon
2021-09-22 21:53:55 +09:00
parent 40181a655d
commit 8259b1dc54

View File

@@ -292,7 +292,7 @@ class HTS:
day = objStockChart.GetDataValue(0, i) day = objStockChart.GetDataValue(0, i)
if day < int_given_day: if day < int_given_day:
continue continue
time = datetime.strptime(day+" "+str(objStockChart.GetDataValue(1, i)), '%Y%m%d %H%M%S') time = datetime.strptime(str(day)+" "+str(objStockChart.GetDataValue(1, i)), '%Y%m%d %H%M%S')
if time < start_time: if time < start_time:
continue continue
@@ -305,16 +305,21 @@ class HTS:
if len(result["check"]) == 0: if len(result["check"]) == 0:
result["check"].add(start_time) result["check"].add(start_time)
result["time"].append(start_time) result["time"].append(start_time)
result["open"].append(open)
result["close"].append(open)
result["high"].append(open)
result["low"].append(open)
result["vol"].append(0)
if time not in result["check"]: if time not in result["check"]:
result["check"].add(time) result["check"].add(time)
result["time"].append(time) result["time"].append(time)
result["open"].append(open) result["open"].append(open)
result["close"].append(close) result["close"].append(close)
result["high"].append(high) result["high"].append(high)
result["low"].append(low) result["low"].append(low)
result["vol"].append(vol) result["vol"].append(vol)
return return