return or log return

7 次查看(过去 30 天)
Mate 2u
Mate 2u 2012-1-24
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.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Financial Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by