

Full code is embedded below (nbviewer). Open in new tab: https://nbviewer.org/github/harshb2007/Quant-Portfolio/blob/main/QUANT%20PORTFOLIO/PROJECT-03-Pairs%20Trading%20Cointegration%20%26%20Z-Score/PROJECT-03_-_Pairs_Trading_with_Cointegration_%26_Z-Score.ipynb.