I have two time series of share prices, Price1
and Price2
. Tday
is the time series of the dates which match for both prices. Now I am trying to match the prices of each to the newly established tday
(matching dates time series). I am following instructions of building indexes. I then proceed to match them by creating the new cl1
set which is basically price1
matching the indexed dates as shown below. My problem is that on my old Matlab this used to work fine. Now the cl1
comes out to be a very volatile time series which resembles what it should be but is way to volatile with swings of 20-40% from one data point to the next. I am using Matlab 7.12 R2011a now. Can anybody help me correcting this volatility in cl1
and cl2
?
[tday, idx1, idx2]=intersect(tday1, tday2);
cl1 = adjcls1(idx1);
cl2 = adjcls2(idx2);