I'm trying to better understand rolling windows, but experiencing two issues in my algorithm. The issues may be related.

The first issue is I'm unable to warmup the rolling window despite using self.Warmup(). This is shown in the “VIX” chart I've created, which is plotting the VIX from 21 days ago, pulling from the rolling window.

The second issue is that the first value shown on the chart on 3/1/2012 is showing the VIX price from 19 days prior, not 21 days prior. I would think it should be 21 days, not 19. I'm not sure what happened.

Thanks in advance for your help with this.

Author