Portfolio Optimization-II (handling “short” position)

Instead of using OptWeights function created in last post, we will use portfolio.optim function which is present in “tseries” library to handle “short” position stocks. Therefore make sure to have “tseries” package installed before running this code: First, lets check the weights when “short” positioning of stocks are allowed: It is same to what we[…]