Fix timestamps in custom data algorithms (#5426)
* Correct custom data timestamp and match performance across languages * Add EndTime property * Add comment for crypto SetHoldings
This commit is contained in:
@@ -99,6 +99,7 @@ class Bitcoin(PythonData):
|
||||
try:
|
||||
data = line.split(',')
|
||||
coin.Time = datetime.strptime(data[0], "%Y-%m-%d")
|
||||
coin.EndTime = coin.Time + timedelta(days=1)
|
||||
coin.Value = float(data[4])
|
||||
coin["Open"] = float(data[1])
|
||||
coin["High"] = float(data[2])
|
||||
|
||||
Reference in New Issue
Block a user