File Exchange

image thumbnail

Getting Started with Portfolio Optimization (Files for Video Demo)

version 1.2.0.0 (26.7 KB) by Kawee Numpacharoen
Files for demonstrating how to perform portfolio optimization

54 Downloads

Updated 12 Sep 2017

View License

The files are designed to show how to perform portfolio optimization, obtain optimal portfolio, and visualize efficient frontier. The video demo is located here: https://www.mathworks.com/videos/getting-started-with-portfolio-optimization-68762.html
Note that you need to download labelpoints from FileExchange too.

Cite As

Kawee Numpacharoen (2019). Getting Started with Portfolio Optimization (Files for Video Demo) (https://www.mathworks.com/matlabcentral/fileexchange/60433-getting-started-with-portfolio-optimization-files-for-video-demo), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (13)

Hi Marwa,

For converting .mlx file to .m file, it can usually be done using Live Editor in MATLAB. See here for more details: https://www.mathworks.com/matlabcentral/answers/271478-how-do-i-go-between-plain-scripts-m-and-live-scripts-mlx
However, you are using R2013a, which you don't have the file editor yet. I think you may try this one first. https://www.mathworks.com/matlabcentral/fileexchange/59217-livescript2m
If it's not possible, please contact our tech support.

Marwa Talbi

Please how can i convert mlx file to m file in matlab R2013a?

jieyu chen

Please check if you have Financial Toolbox installed or not because tick2ret is a function in the toolbox.

Nichanun S

dailyReturn = tick2ret(T{:,3:end});

I cannot use this code on running

Yatri Patel

It seems obvious but make sure you have the files and toolboxs installed before you run the code. If you do this, you can read in the excel file he used.

For R2018b, the dowPortfolio.xlsx is located in ...\MATLAB\R2018b\toolbox\finance\findemostoolbox\finance\findemos

I too am not able to locate the dowPortfolio.xlsx file on my mac. Not sure which directory the Financial tools box installation is made in.

I can not find dowPortfolio.xlsx file on my mac. Financial toolbox is installed but no file :)

Adam Danz

Updates

1.2.0.0

Remove Yahoo API and simplify the example.

1.1.0.0

Adjust the dates for downloading data without missing values and add screenshot

MATLAB Release Compatibility
Created with R2016a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: labelpoints