Info

This question is closed. Reopen it to edit or answer.

Financial Time Series Object Performance

1 view (last 30 days)
Cagdas Ozgenc
Cagdas Ozgenc on 16 Mar 2013
Closed: MATLAB Answer Bot on 20 Aug 2021
Hello,
I am trying to use the Financial Time Series Object, because the utility functions that come with it look neat. However the object creation seems to be very slow.
Below is my code-snippet to create the object. Unfortunately my date data is not in one of the accepted formats so I have to read the data first with csvread then create the fints object.
rawdata = csvread(fullPathFilename,1);
fts = fints(datenum(num2str(rawdata(:,1)),'yyyymmdd'),rawdata(:,2:12), {'Open','High','Low','Close','UnadjustedClose','Cash','Volume','OpenInterest','TotalVolume','TotalOpenInterest','UnadjustedVolume'});
This is taking 10 times slower than simply reading the data into matrices with csvread (I am loading around 2000 stocks). Maybe it is due to date conversion, I don't know. How can I speed it up? What other performance bottlenecks are there in fints related functions?
Should I stick to matrices, instead?
Thanks

Answers (0)

This question is closed.

Community Treasure Hunt

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

Start Hunting!