I've recently been reading/learning about developing quantitative trading algorithms, and found this platform (and Zipline) to be an awesome place to get started. In my reading, I've seen lots of methods explored for how one would predict price movements for a specific time series - for example many of the example algorithms on this platform are intended to do this, and then implement a simple buy-when-going-up/sell-when-going-down strategy for executing orders. However, I've also learned a bit about portfolio optimization techniques - how to maintain a portfolio that lies on the efficient frontier, maximizing return for a given risk level (or the other way around, same thing). I've seen a few examples for doing this floating around in this forum, but so far haven't seen any good examples for combining these two parts (price prediction of a basket of equities, and portfolio optimization). Is this a standard thing to do in creating trading algorithms? And if so, does someone have an example of this being done? Alternatively a link to a book covering these topics would be awesome also. I can imagine how it would work, and could probably hack something together - but I'd rather use known-good practices if possible.
TLDR: I have a basket of N stocks, and have direction predictions for each. How do I construct an optimal portfolio from these predictions, and then update this portfolio as the predictions are updated?