Hello!
I need help understanding how does R calculate realized variance and bipower variance in highfrequancy package. I am trying to identify days in my data in which price jump occur using Barndorff-Nielsen and Shephard test. However, even though R gives me solution I don't quite understand the formula it uses and I would like to reproduce results in excel as well. I'm using rCov and rBPCov functions. My data set is made of stock prices every minute for 63 days. Thank you for your help!
RV=rCov(data.xts,alignBy="minutes",alignPeriod=1,makeReturns=TRUE)
BP=rBPCov(data.xts,alignBy="minutes",alignPeriod=1,makeReturns=TRUE)