Equity DrawdownPct DrawdownDuration
0 10000.00000 0.00000 NaN
1 10000.00000 0.00000 NaN
2 10000.00000 0.00000 NaN
3 10000.00000 0.00000 NaN
4 10000.00000 0.00000 NaN
And there are as many rows as the input dataframe. It would be a good practice to have also the date column inherited from the main dataframe on this equity dataframe.
Certainly! It seems like the key issue here is that your data lacks a "DateTimeIndex". As your equity curve has the same index as your data. just convert the date in your data to index and it should be fine.
When you print the equity curve like this:
The result is this:
And there are as many rows as the input dataframe. It would be a good practice to have also the date column inherited from the main dataframe on this equity dataframe.