Hey Quant Community,
Been lurking for a couple months now. I'm looking to get some help on an algo idea for more longer term investing. It's been backtested to 2007 and does a good job of hedging against down markets. The algo is a blend of:
- 30% tech
- 30% Materials
- 20% finance
- 20% pharma. The portfolio rebalances every 150 days.
I'm very new to Python (and programming in general) so I've only thrown bits together at this point from other algos I've seen. I'm looking to get help on the following:
When the portfolio rebalances, I'd like to take realized profits and reinvest into the portfolio with the correct percentages as above. Could use some guidance on what that might look like?
Need help understanding how to write in capital injection on a monthly basis with the algo purchasing accordingly. (ie. on the 30th of every month, add $10k & distribute based on above %s)
Just some general looking at what I've written so far and get some feedback. Again, very new to this so feedback is much appreciated!
As a side note, this isn't quite an algo but more so just general stock picking. I'd like to try and use it as a stepping stone to some more advanced stuff. Thanks !