return or log return

7 views (last 30 days)
Mate 2u
Mate 2u on 24 Jan 2012
Hi there, I downloaded 2 sets of financial data from yahoo finance earlier.
I am calculating the daily returns by using the opening price and closing price (CP-OP)/CP........Now when I log this I get negative values even though I have positive returns on some days. Additionally it does not allow me to compute correlation and coefficient.
Can anybody tell me if I am doing something wrong or should I not take the log of the return?
Even when I log CP/OP it still gives bad values.

Answers (0)

Categories

Find more on Financial Toolbox in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!