In algorithmic trading many of us use correlation strategies, I figured having a rolling correlation can tell us more about the relationship between securities over time versus just getting the overall correlation between two securities for a given time period. My code is free and open for anyone to use, it will be interesting if others can use a rolling correlation to develop better correlation strategies. I attached my source code feel free to let me know of any improvements or corrections that should be made!