I need some help in creating a rolling Standard Deviation for 20 days at one time. So for Example the date is 02/02/18 I want to get the standard Deviation of the values between 02/02/18 and 01/05/18.
I have attached a spreadsheet of how it has been done in excel i just need to calculate the column in yellow.
I have created this =StdDevP([price return])*Sqrt(250)
but I am having trouble getting it to do the range. I have created two variables called
start date: =RelativeDate([Clear Date];0)
20 days ahead: =RelativeDate([Clear Date];20)