Itraday returns/ time series creation
Show older comments
Hi,
I work with the below sample of (intraday) high freequency stock data:
sample:
STOCK DATE TIME PRICE VOLUME
ETE 22082011 11301514 05.21 500
ETE 22082011 11301713 06.51 1000
ETE 22082011 11311517 07.11 500
ETE 22082011 11321514 06.31 1000
I need to create new time series of stock returns (defined as Rt= ln(Pt/Pt-1)) for multiple time scales, i.e 3-min returns, 5-min returns,..., up to 180-min returns.
However the totalsize of the data is huge ( almost 9 mil observations).
Could someone suggest a time-efficient method of create these time series.
Many Thanks in advance
Panos,
PS: The column TIME indicates hour/minute/seconds/millisecs with observations being even at the same millisecond
Accepted Answer
More Answers (0)
Categories
Find more on Creating and Concatenating Matrices 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!