Hi,
I'm completely new to VBA and have quite a complex task to carry out. So far I have been doing ok, however I need to calculate a variable using rolling windows... Let me explain. In one worksheet I have 30 rows of data, each row represents a time series of daily returns differences. In the next worksheet I would like to calculate a time series for each row using the formula belowI am not sure how to go about this since I have to do this for 30 different rows, each different lengths.
TE=((1/(n-1))*(ept-eptAverage)^2)^0.5
Where ept is the variable in the rows, e(ptaverage) is the average of all observations above, and n is the number of observations up to e(pt)
In the workbook below, the first worksheet has the data and the second has the first three calculations to illustrate the formula.
Can anyone help?
Thanks