Hello QC Community,

Recently, I have started a school project to perform option purchases around earnings releases. However, I am finding difficulties with the processing time of the algorithm. The following code process 15 equity symbols where the strike prices are in range of -15 and +15 and DELTAX = 15 days, and DELTAY = 30. I would like to know if there is a range function or a workaround for the strike prices to speed things up. For example: Strikes(range(-10,-15),range(+10,+15)). So basically reducing the strike prices for only getting delta 0.15 for put and call options.

 

            option.SetFilter(lambda universe: universe.IncludeWeeklys().Strikes(-15, +15)
            .Expiration(timedelta(self.DELTAX), timedelta(self.DELTAY))
            )
            
            self.symbols.append(option.Symbol)