Hi community members~

I need some help on my codes, which aim to use Implied Volatility v.s. Historical Volatility as indicators to indentify long/short straddle opportunities and create a long/short portfolio rebalanced monthly. The codes did not run through. Would appreciate if anyone could help take a look and diagnose. Cheers!

Duke