Closed DerekMelchin closed 7 months ago
The last row is not an extra day, but the data for Feb01. Data in dataframes is indexed by EndDate
, if you try the same case in C# you will see the last bar has Time=Feb01;EndTime=Feb02
(see this backtest).
In this specific case the volume is 0 because the data is being fill forwarded and the last raw data is for Jan31.
Check this other backtest for a different asset, for which the last data is actually on the day before the delisting date.
In fact, this is a data issue, because the last trading date for the asset in the example was Jan 31 2019, being the delisting date actually Feb 01, not Feb 02 (which was a Saturday, btw).
References for the delisting (a merger with CenterPoint Energy, Inc.):
Expected Behavior
If an asset is delisted on 2019-02-02, then a history request should not include a 2019-02-02 bar.
Actual Behavior
Potential Solution
N/A
Reproducing the Problem
This backtest shows the delisting events Logs:
System Information
Checklist
master
branch