# Omicron Research Institute

## QuanTek Optimal Portfolio

The Optimal Portfolio in QuanTek is computed using a modified Markowitz Method. The Markowitz Method of portfolio optimization is familiar from Modern Portfolio Theory.  This method makes use of the estimated expected return for each security in the portfolio, and also the covariance matrix of the returns between all the securities in the portfolio.  Then the goal is to find the proportion of each security that maximizes returns for the overall portfolio, and which also minimizes risk.  The risk or volatility is defined as the standard deviation (square root of variance) for the portfolio returns, but for our purposes we use the average absolute deviation.  The portfolio covariance matrix is obtained by measuring the volatility of each security and the correlation of the returns between all the securities in the portfolio.  The Markowitz Method computation is a complex one in linear programming in general, but in QuanTek a modification to this procedure is made to make the calculation more suitable for the QuanTek program.  The Portfolio Optimzation method that we use is described in the article Portfolio Optimization in QuanTek on this website and in the Help file. For the Portfolio Optimzation calculation you can set the percent margin invested, and the risk tolerance, the opposite of risk aversion, to adjust the optimization of the portfolio for different desired ratios of overall portfolio return to risk. On the low-risk tolerance setting, the optimal portfolio takes into account the volatility, while on the high-risk tolerance setting the proportions of the securities in the portfolio are roughly the same as the proportions of the expected returns alone.

The Optimal Portfolio must be computed each time the QuanTek  program starts. This is because it changes each time new data are downloaded. After downloading new data, it is important to make sure the Price Projections are updated for each security. You must do this by opening each security so the Price Projection calculation runs. Actually, the Optimal Portfolio does not depend on the Price Projections, but the Price Projections are displayed in the Portfolio Report. After computing the Optimal Portfolio, you can then see the result immediately in the Portfolio Report. You can also see it in the Short-Term Trades dialog.

### Portfolio Report

The Portfolio Report is an RTF file that you can display at any time (after computing the Optimal Portfolio). It shows the securities in the current Portfolio folder along with the past returns on several time scales, the future expected return on the chosen trading Time Scale, and the standard deviation (volatility). Next it displays the model portfolio which consists of the number of shares long or short of each security "owned", the market value of the shares, the actual price, and the basis price. Next some portfolio information is displayed such as the account equity and the total long and short market value. Finally the optimal portfolio is displayed with the number of shares of each security and percentage of equity, to compare with the corresponding numbers in the model portfolio. It also displays the Sharpe Ratio for each security, which is a measure of the ratio of expected return to risk. Finally the results of the Optimal Portfolio calculation for the overall portfolio as a whole are displayed, consisting of the Expected Return and Standard Deviation for the whole portfolio, along with the Margin Leverage. All this information is extremely useful for making trading decisions. The RTF file can be saved to disk and consulted later.

For some examples of the Portfolio Report, see the Model Portfolio page on this website. 