I'm having some dificulty to use ef_maximum_sharpe_ratio with a more "spreaded" allocation... Would it be possible to add some regularization function to avoid the optimizer to concentrate allocation in only 1 or 2 stocks?
Another way to resolve this could be to add some "per stock" or global limit settings (lower and upper). I don't know wich solution is better.... E.g: only allow a maximum of 80% of portfolio allocation for each stock.
Hello @fmilthaler !
I'm having some dificulty to use ef_maximum_sharpe_ratio with a more "spreaded" allocation... Would it be possible to add some regularization function to avoid the optimizer to concentrate allocation in only 1 or 2 stocks? Another way to resolve this could be to add some "per stock" or global limit settings (lower and upper). I don't know wich solution is better.... E.g: only allow a maximum of 80% of portfolio allocation for each stock.
Thanks!