Hi, 

I would like to update my code so that I can attempt to gain 2 percent max of my portfolio based on the credit received from a bull credit spread. How would I make my code calculate how many spreads to open?