-
Notifications
You must be signed in to change notification settings - Fork 430
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
Changing RunPeriod doesn't do anything #387
Comments
I tried working around this by passing in a set of dates corresponding to the time period I want to rebalance on
This throws an error here because it's checking if the date is in a list containing one element, which is a pd.datetimeindex I believe. |
[Did not mean to close this adding my comment, so reopening] So I have the following code:
Stocks_df, indicator_df and weights_df all have daily data in them. Changing the line from bt.algos.RunDaily() to bt.algos.RunYearly gives me the same results when I was expecting the rebalancing frequency to change. I tried working around this by passing in a set of dates corresponding to the time period I want to rebalance on
This throws an error here because it's checking if the date is in a list containing one element, which is a pd.datetimeindex I believe. Originally posted by @aelkholy in #387 (comment) |
These algos work for me, so I think something else is tripping up your code. I can't see anything specific that is wrong - but not sure what
Replace RunMonthly with RunDaily etc and check |
So I have the following code:
Stocks_df, indicator_df and weights_df all have daily data in them. Changing the line from
bt.algos.RunDaily()
tobt.algos.RunYearly
gives me the same results when I was expecting the rebalancing frequency to change.The text was updated successfully, but these errors were encountered: