HI Ivan,
I created a portfolio with Top 10, weekly and the only difference is with and without cash allocation. The end result stock mix is different. Any reason?
The positions are different because for the backtest with the cash allocation, when the strategy increases cash because of negative market sentiment, it will sell off some of the existing stocks to raise cash even if the existing stock is above the moving average. So in future when the strategy decides to reduce cash when market sentiment improves, it might not select the same stock. It will check the ranking of each stock based on the 3 month and 6 month returns and pick the best.
So it will be different from the backtest without the cash allocation option because this strategy will not adjust the cash allocation and will continue to hold onto stocks in the portfolio above the moving average.
Hope this helps! Let me know if you have further questions.
This one is with cash allocation turn on. You just have to turn it off and make the comparison between the two.
Do you mind attaching the backtest to your post so I can take a look? Just click on the "Edit" button on the top right and select your backtest from the drop down. Thanks!
© PyInvesting 2024