Directory of Open Source for Quantitative Finance and Trading
Username: Password: Not registered?
 
Quick Search:    (AJAX based: No need to press button)

Main : Excel : 


Category: Excel View Full Details
Download Now!Portfolio Optimization using Markowitz Model
Submitter: vanna Date: 2009/1/4
Description:
This file calculates optimum weights for components of a stock portfolio. The weights are calculated accoring to Markowitz theory for minimizing risk for a given target portfolio return

Markowitz model provides a way to define a portfolio which is efficient - one which has highest reward for a given risk, or lowest risk for a given reward

To use this spreadsheet, just press calculate button.
Following are tasks performed by this workbook:
1.It reads the stock symbols entered in input section and loads the historical stock prices from yahoo finance using internet connection. Time range being considered is the start and end dates specified in the input section
2.Creates a matrix of stock prices for all the symbols entered. It then creates a matrix of stock returns.
3.Creates a covariance matrix of stock returns
4.It is assumed that expected returns for each stock is equal to historical returns. (This might not be necessarily true!)
5.Create an objective function which takes guess values of portfolio weights and returns portfolio variance. Input weights vector has length NoOfStocks-2. This is becuase the other 2 weights are solved by using theses constraints:
-Weight of all members in portfolio should be 1
-Expected return of portfolio should match target portfolio return
6.Use simplex method to find set of weights which minimize portfolio variance.



Got a question or problem with this link? Just enter your message and click on submit. No registration is required.

Note: A copy of this message will also be emailed to the submitter of this link
Downloaded 7668 times  7668  File Size 0 bytes  Supported Platforms Excel VBA  Home Page http://www.quantcode.com/
Rating: 0.00 (0 votes)
Rate this File | Modify | Delete | Report Broken File | Tell a Friend | Comments (63)

Poster Thread
ExSan
Posted: 2009/1/20 15:28  Updated: 2009/1/20 15:28
Just popping in
Joined: 2008/6/17
From:
Posts: 7
 Re: Portfolio Optimization using Markowitz Model
Markowitz Portfolio Automata Handler

http://www.quantcode.com/modules/mylinks/singlelink.php?cid=4&lid=173

From the download-able file extract executable EXSAN to your desktop,
The very first time ExSan is executed it will create the default input/output directory c:\exsan
In order to access this directory START / RUN and type in c:\exsan
All data files included must be extracted to c:\exsan
Tue Jan 20 15:22:18 2009

EXSAN v.0.3.18.S - exsan.software@gmail.com exsan@uio.satnet.net

E X S A N M E N U
6 Quantitative Finance Room
Quant Finance Room
f Markowitz Portfolio Automata Handler

Automata Handler of Markowitz Portfolio

Your Data File in c:\exsan\ Data file ---> stock

Data will be read from File ---> c:\exsan\stock.txt

[8...12] Build Portfolio Markowitz with the at least || last n ticks ---> 10

Make Stops (1-y-Y | N-n-0) ? ---> no

Poster Thread
slim
Posted: 2009/9/4 11:19  Updated: 2009/9/4 11:19
Just popping in
Joined: 2009/9/4
From:
Posts: 1
 Re: Portfolio Optimization using Markowitz Model
hello
this program is not working. could u please upload a fixed one. thx

Poster Thread
gpapadaki
Posted: 2010/7/18 5:07  Updated: 2010/7/18 5:07
Just popping in
Joined: 2008/1/16
From:
Posts: 1
 Re: Portfolio Optimization using Markowitz Model
What do I have to do to add extra constrains?
No short sales for example?
Thanks in advance

Poster Thread
Anonymous
Posted: 2011/4/30 7:41  Updated: 2011/4/30 7:41
 Portfolio Optimization using Markowitz Model
how do i organize 5years stock historical data for 10 different companies to run optimization

Poster Thread
Anonymous
Posted: 2011/4/30 8:08  Updated: 2011/4/30 8:08
 Portfolio Optimization using Markowitz Model
HOW DO I INPUT THE STOCK DATA I WANT INTO THE SPREADSHEET FROM YAHOO FINANCE

Poster Thread
Anonymous
Posted: 2011/6/9 3:24  Updated: 2011/6/9 3:24
 Portfolio Optimization using Markowitz Model
hello world

Poster Thread
Anonymous
Posted: 2012/3/22 13:47  Updated: 2012/5/6 19:24
 Portfolio Optimization using Markowitz Model
Apparently this spreadsheet does the same, but with transaction costs: http://investexcel.net/215/mean-variance-portfolio-optimization-with-excel/

Poster Thread
Anonymous
Posted: 2012/3/27 23:11  Updated: 2012/5/6 19:22
 Portfolio Optimization using Markowitz Model
Hello,
How do compute the expected return of a list of stocks (no weights given) on excel?

Poster Thread
Anonymous
Posted: 2012/4/5 23:46  Updated: 2012/5/6 19:23
 Portfolio Optimization using Markowitz Model
AXA, ERA, FMG, JBH, QAN

Poster Thread
Anonymous
Posted: 2012/4/7 7:17  Updated: 2012/5/6 19:20
 Portfolio Optimization using Markowitz Model
what is a portfolio rebalancing

Discuss this file. Just enter your message and click on submit. No registration is required.
Similar Links:
Portfolio optimization with Binomial model (Software)
Global Portfolio Optimization (Paper)
Markowitz Portfolio (Link)
Libor market model with semimartingales (Paper)
Mean variance optimization and Markowitz optimization (Forum)

Subscribe to RSS or daily email updates of latest quantitative finance code listings
Email address :
Copyright © 2011 QuantCode Inc. All rights reserved.