Not sure about the correct way to use the bar's datetime in the new version. Is it still self.data.datetime.datetime() ?
Latest posts made by wanyuan
RE: Time in Bar's Datetime is not correct in version 184.108.40.206, comparing to 220.127.116.11
Time in Bar's Datetime is not correct in version 18.104.22.168, comparing to 22.214.171.124
In the new version, it will always yield something like 2016-01-01T23:59:59.999989, even if I tested it on 1-min data. The code works fine on 126.96.36.199
The data were loaded from generic csv with format like this (I removed space, : and - in the datetime string, but it is not the cause of this issue)
dataname='2016.csv', headers=False, separator=";", fromdate=datetime.datetime(2016, 9, 1), todate=datetime.datetime(2016, 12, 30), nullvalue=0.0, dtformat=('%Y%m%d%H%M%S'), datetime=0, high=2, low=3, open=1, close=4, volume=5, openinterest=-1