Hi all, I'm a newbie. I modified the code from the long strangle tutorial. The objective is to backtest a strategy that short strangle with DTE <7 every week

However , the code can only sell options 1 every month. Could anyone help me modify the below code so it could short every week? 

Thank you