Replies: 1 comment
-
|
Hi @finlabhk, see this answer on how to approach a rebalancing task. There is also an example under https://vectorbt.dev/api/portfolio/base/#vectorbt.portfolio.base.Portfolio.from_orders if you already know the weights. In your example, you need to specify |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am a newbie on doing backtesting. I dont know how to do the backtesting on rebalance my portfolio.
Strategy Description:
select a pool of targets
find the target which raise over 10% in last 5 days, if there is more than 3 targets, only top 3 targets will be selected. Each target is only allowed to invest 50% of portfolio. Rebalance the portfolio every week
But I am so confused about the result:
comb_pf.orders.records_readableIs there any wrong about the coding?
P.S. Thank you @polakowo for contributing such an amazing library to do backtesting.
Beta Was this translation helpful? Give feedback.
All reactions