Portfolio risk minimization loop and switch security between lists

2 次查看(过去 30 天)
I'm trying to build a portfolio with the smallest risk. So I made a primitive portfolio containing the smallest betas based on my index. I now have to recalculate betas based on those titles (primitive portfolio) and minimize those betas.
So my question is : How can I build a loop that allows me to find the maximum beta inside the portfolio, compare it to the minimum beta outside of the portfolio (but in my security universe) and SWITCH them if the beta of the outside security is smaller than the one in the portfolio...? The biggest problems seems to be the fact that I'm not able to label data to their own ticker and have to play with the order of rows or columns to make my way in the optimisation...
thanks

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Portfolio Optimization and Asset Allocation 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by