-
-
Notifications
You must be signed in to change notification settings - Fork 985
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plot resample=True: DataError: No numeric types to aggregate #309
Comments
This breaks in backtesting.py/backtesting/_plotting.py Lines 113 to 118 in e3cccdf
I'm assuming, is your strategy creating an indicator that is not numeric? Such as: self.I(np.random.choice, ['a', 'b'], len(self.data)) |
In some sense you are correct. I am using Tulip and for lagging indicators, it returns shorter arrays. To circumvent this, I pad the array with |
The standard for numeric arrays is NaN: I think we might want to catch/mitigate this. |
Oh ok. Yes, |
Expected Behavior
No errors, plot shows.
Actual Behavior
Steps to Reproduce
Dataframe:
Code:
Additional info
The text was updated successfully, but these errors were encountered: