-
Notifications
You must be signed in to change notification settings - Fork 185
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
can't resample data #17
Comments
Hi @mr-m0nst3r Thanks for the submission and report. Yes, resampling currently does not work from my testing. It is an item to tackle in the future. I have marked this as a bug and will keep it open. |
Okay, thank you. Btw, I guess I have to calculate the macd without using the bt.Indicators. Thanks and hope someone could make this bug fixed. |
I find that if we remove Any help with this finding? Here's the question I posted on the backtrader community: |
After testing it seems that this bug only triggers when a bar which needs to be resampled is only a few seconds old. I haven't been able to trigger it while walking through the code. I came up with this ugly fix:
Log snippets from some testing I did with 1 and 2 minute bars:
|
No, at least it is not working for me
|
For me it worked when I checked while escape condition to: |
This works for me. Thanks. |
No specific reason. Excessive caution. |
Hi there,
I'm trying to add 1 minute data to CCXTFeed, and then resample it to 5 minutes, so I can get MACD of 1m and 5m. But failed.
Here's the code:
And here's the output:
Any idea?
Thank you.
The text was updated successfully, but these errors were encountered: