Closed anarchy89 closed 2 years ago
Hi @anarchy89,
Apologies for the slow reply. By definition, bl_weights
gives the unconstrained weights that correspond to the views – it is meant to be a "quick" way of seeing which weights correspond to a given set of views.
To calculate constrained weights, you should use the BL returns and BL cov matrix as an input to EfficientFrontier
, which is long-only by default.
Hope this helps!
Robert
I use the following command to create a black litterman model.
But I end up with a mixture of positive and negative weights.
Here is my code.
My output looks like this,
I checked and the weights actually add up to 1 when the negative values are included, meaning there is shorting involved right?
How do I prevent shorting or negative weights?
If I add up only the positive weights it adds up to 2.67, the negative weights add up to 1.67. How do I make it so that it's long only adding up to 1?