return or log return
7 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Financial Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!