init
This commit is contained in:
@@ -292,7 +292,7 @@ class HTS:
|
||||
day = objStockChart.GetDataValue(0, i)
|
||||
if day < int_given_day:
|
||||
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:
|
||||
continue
|
||||
|
||||
@@ -305,6 +305,11 @@ class HTS:
|
||||
if len(result["check"]) == 0:
|
||||
result["check"].add(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"]:
|
||||
result["check"].add(time)
|
||||
|
||||
Reference in New Issue
Block a user