Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Financial Time Series Object Performance

1 visualización (últimos 30 días)
Cagdas Ozgenc
Cagdas Ozgenc el 16 de Mzo. de 2013
Cerrada: MATLAB Answer Bot el 20 de Ag. de 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

Respuestas (0)

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by