I am trying to generate a chart that plots correlation vs time for gold spot prices vs the S&P500 index. I am struggling to identify the appropriate length in days for the rolling window; every choice I'm using seems to give me artifacts (there's always some periodicity in the chart, with the period close to the length of the window I choose). Any guidance on this would be appreciated.